Skip to content

Commit 629f13d

Browse files
committed
Fix Tests
1 parent 929cc09 commit 629f13d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/__mocks__/electron.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const browserWindow = {
3434
},
3535
on: () => {},
3636
close: jest.fn(),
37+
hide: jest.fn(),
3738
destroy: jest.fn(),
3839
};
3940

@@ -48,6 +49,7 @@ module.exports = {
4849
app: {
4950
getVersion: () => '0.0.1',
5051
},
52+
getCurrentWindow: jest.fn(() => browserWindow),
5153
},
5254
ipcRenderer: {
5355
send: jest.fn(),

0 commit comments

Comments
 (0)