Skip to content

Commit 7243b0e

Browse files
committed
(#17) Updated test code for window tests
1 parent 7a86432 commit 7243b0e

File tree

1 file changed

+3
-3
lines changed
  • test/window-integration-tests

1 file changed

+3
-3
lines changed

test/window-integration-tests/main.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const HEIGTH = 600;
1010
function test(description, assertion) {
1111
console.log(`${description}: ${assertion}`);
1212
if (!assertion) {
13-
process.exit(1);
13+
app.exit(1);
1414
}
1515
}
1616

@@ -40,7 +40,7 @@ function createWindow() {
4040
test("posY", activeWindowRect.y === POS_Y);
4141
test("width", activeWindowRect.width === WIDTH);
4242
test("height", activeWindowRect.height === HEIGTH);
43-
process.exit(0);
43+
app.quit();
4444
}, 5000);
4545
}
4646

@@ -51,7 +51,7 @@ ipcMain.on("main", (event, args) => {
5151
});
5252

5353
app.whenReady().then(() => {
54-
setTimeout(() => process.exit(1), 15000);
54+
setTimeout(() => app.exit(1), 15000);
5555
createWindow()
5656

5757
app.on('activate', function () {

0 commit comments

Comments
 (0)