1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-11-28 23:06:32 +01:00
blowfish/tests/__mocks__/electron.js

29 lines
375 B
JavaScript
Raw Normal View History

2020-02-09 22:16:23 +01:00
const electron = {
require: jest.fn(),
match: jest.fn(),
app: jest.fn(),
remote: jest.fn(),
shell: jest.fn(),
dialog: jest.fn()
}
const remote = {
getCurrentWindow: jest.fn()
}
2020-02-25 04:10:06 +01:00
const ipcRenderer = {
on: jest.fn()
}
2020-02-09 22:16:23 +01:00
// for the shell module above
const shell = {
openExternal: jest.fn()
}
module.exports = {
electron,
remote,
2020-02-25 04:10:06 +01:00
shell,
ipcRenderer
2020-02-09 22:16:23 +01:00
}