diff --git a/__mocks__/electron.ts b/__mocks__/electron.ts index bc536142cf..67a23c1ce2 100644 --- a/__mocks__/electron.ts +++ b/__mocks__/electron.ts @@ -31,6 +31,6 @@ export default { on: jest.fn(), }, powerMonitor: { - on: jest.fn(), + once: jest.fn(), }, };