tests: move runLog to global

This commit is contained in:
Peter Fajdiga
2024-10-06 20:39:11 +02:00
parent ec5e7002dc
commit 703ed2eb40
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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();