1
0
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:
Daniel García 2024-11-11 12:51:13 +01:00 committed by GitHub
parent 25f00513c0
commit 597296cdb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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", () => {