mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Fix electron-log test (#11955)
This commit is contained in:
@@ -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", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user