1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Mock electron.ipcRenderer.on to prevent errors in React compoment test cases

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
Hung-Han (Henry) Chen 2020-10-28 17:59:35 +08:00 committed by Hung-Han (Henry) Chen
parent 592b8c20f7
commit 7a2da15828
No known key found for this signature in database
GPG Key ID: 32931168425E1C95

View File

@ -13,5 +13,8 @@ module.exports = {
getPath: jest.fn() getPath: jest.fn()
} }
}, },
dialog: jest.fn() dialog: jest.fn(),
ipcRenderer: {
on: jest.fn()
}
}; };