mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Mock ipcMain.on
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
1 file changed
+3
@@ -30,6 +30,9 @@ export default {
|
|||||||
ipcRenderer: {
|
ipcRenderer: {
|
||||||
on: jest.fn(),
|
on: jest.fn(),
|
||||||
},
|
},
|
||||||
|
ipcMain: {
|
||||||
|
on: jest.fn(),
|
||||||
|
},
|
||||||
powerMonitor: {
|
powerMonitor: {
|
||||||
once: jest.fn(),
|
once: jest.fn(),
|
||||||
on: jest.fn(),
|
on: jest.fn(),
|
||||||
|
|||||||
Reference in new issue
Block a user