mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
Fix electron-log test (#11955)
This commit is contained in:
parent
25f00513c0
commit
597296cdb8
@ -2,7 +2,7 @@ import { ElectronLogMainService } from "./electron-log.main.service";
|
||||
|
||||
// Mock the use of the electron API to avoid errors
|
||||
jest.mock("electron", () => ({
|
||||
ipcMain: { handle: jest.fn() },
|
||||
ipcMain: { handle: jest.fn(), on: jest.fn() },
|
||||
}));
|
||||
|
||||
describe("ElectronLogMainService", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user