diff --git a/src/tests/utils/TestRunner.ts b/src/tests/utils/TestRunner.ts index 9ecc621..0dceb4d 100644 --- a/src/tests/utils/TestRunner.ts +++ b/src/tests/utils/TestRunner.ts @@ -9,7 +9,6 @@ class TestRunner { for (const test of this.tests) { console.log("Running test " + test.name); for (let i = 0; i < test.count; i++) { - runLog.length = 0; test.f(); } } @@ -24,5 +23,4 @@ namespace TestRunner { } } -const runLog: string[] = []; const tests = new TestRunner(); diff --git a/src/tests/utils/global.ts b/src/tests/utils/global.ts index 8d594d5..d6eed05 100644 --- a/src/tests/utils/global.ts +++ b/src/tests/utils/global.ts @@ -7,6 +7,7 @@ let notificationInvalidPresetWidths: Notification; let screen: QmlRect; let tilingArea: QmlRect; +let runLog: string[]; function init(config: Config) { screen = new MockQmlRect(0, 0, 800, 600); @@ -16,6 +17,7 @@ function init(config: Config) { screen.width - config.gapsOuterLeft - config.gapsOuterRight, screen.height - config.gapsOuterTop - config.gapsOuterBottom, ); + runLog = []; const qtMock = new MockQt(); const workspaceMock = new MockWorkspace();