diff --git a/e2e/main.spec.ts b/e2e/main.spec.ts index 8b3c356..a20d484 100644 --- a/e2e/main.spec.ts +++ b/e2e/main.spec.ts @@ -22,7 +22,7 @@ describe('angular-electron App', function () { it('creates initial windows', async function () { const count = await client.getWindowCount(); - expect(count).to.equal(2); + expect(count).to.equal(1); }); }); diff --git a/main.ts b/main.ts index 44f897b..eeb84c1 100644 --- a/main.ts +++ b/main.ts @@ -32,7 +32,9 @@ function createWindow() { })); } - win.webContents.openDevTools(); + if (serve) { + win.webContents.openDevTools(); + } // Emitted when the window is closed. win.on('closed', () => {