Skip to content

Commit

Permalink
Update listener count for 'close' event on main window
Browse files Browse the repository at this point in the history
  • Loading branch information
tupaschoal committed Jan 25, 2025
1 parent d0fdba6 commit 4636014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/__main__/main-window.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('main-window.mjs', () =>
assert.strictEqual(ipcMain.listenerCount('SWITCH_VIEW'), 1);
assert.strictEqual(ipcMain.listenerCount('RECEIVE_LEAVE_BY'), 1);
assert.strictEqual(mainWindow.listenerCount('minimize'), 2);
assert.strictEqual(mainWindow.listenerCount('close'), 1);
assert.strictEqual(mainWindow.listenerCount('close'), 2);
assert.strictEqual(loadFileSpy.calledOnce, true);
assert.strictEqual(showSpy.calledOnce, true);
assert.notStrictEqual(getLeaveByInterval(), null);
Expand Down

0 comments on commit 4636014

Please sign in to comment.