1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00: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

View File

@@ -2,7 +2,7 @@ import { ElectronLogMainService } from "./electron-log.main.service";
// Mock the use of the electron API to avoid errors // Mock the use of the electron API to avoid errors
jest.mock("electron", () => ({ jest.mock("electron", () => ({
ipcMain: { handle: jest.fn() }, ipcMain: { handle: jest.fn(), on: jest.fn() },
})); }));
describe("ElectronLogMainService", () => { describe("ElectronLogMainService", () => {