commit | 935205b14c42fbc3570a28b701ac9f40a6c22184 | [log] [tgz] |
---|---|---|
author | Kamil Musin <kamilm@google.com> | Fri Oct 25 12:07:32 2024 +0200 |
committer | Paladox none <thomasmulhall410@yahoo.com> | Fri Oct 25 12:41:05 2024 +0000 |
tree | bb40df00dab05a4355939ef60e0ab39a1003a089 | |
parent | 797596b88111dcb3282d20936f3abba34c9c8aac [diff] |
In polygerrit tests import sinon directly Our current hack in common-test-setup.ts that adds the name to global works, but leaves linter complaining about "symbol not found" Release-Notes: skip Change-Id: Ie13f1b336a8454f668893da81e6887647e0dd4b9 (cherry picked from commit ac4c1888e9cb5ad51dffc0e5cd58ca067f189b18)
diff --git a/polygerrit-ui/app/elements/core/gr-router/gr-page_test.ts b/polygerrit-ui/app/elements/core/gr-router/gr-page_test.ts index 729a15b..4e1f37d 100644 --- a/polygerrit-ui/app/elements/core/gr-router/gr-page_test.ts +++ b/polygerrit-ui/app/elements/core/gr-router/gr-page_test.ts
@@ -3,6 +3,7 @@ * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 */ +import * as sinon from 'sinon'; import '../../../test/common-test-setup'; import {html, assert, fixture, waitUntil} from '@open-wc/testing'; import './gr-router';
diff --git a/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts b/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts index 4a78140..6a86ad1 100644 --- a/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts +++ b/polygerrit-ui/app/elements/core/gr-router/gr-router_test.ts
@@ -3,6 +3,7 @@ * Copyright 2017 Google LLC * SPDX-License-Identifier: Apache-2.0 */ +import * as sinon from 'sinon'; import '../../../test/common-test-setup'; import './gr-router'; import {Page, PageContext} from './gr-page';