Skip to content

Commit 2315bc1

Browse files
committed
fix: add isDestroyed stub to mock BrowserWindow in tests
1 parent ce149eb commit 2315bc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ipcMain/setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function createMockBrowserWindow(): {
3737
openDevTools: jest.fn(),
3838
} as unknown as WebContents,
3939
isMinimized: jest.fn(() => false),
40+
isDestroyed: jest.fn(() => false),
4041
restore: jest.fn(),
4142
focus: jest.fn(),
4243
loadURL: jest.fn(),

0 commit comments

Comments
 (0)