From 7ef327ed39547716283eb7bdc8ff46c0dbb2f6c5 Mon Sep 17 00:00:00 2001 From: Gabriel Diaz Date: Mon, 7 Oct 2024 15:22:25 -0300 Subject: [PATCH] fix: test --- packages/main/tests/unit.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/main/tests/unit.spec.ts b/packages/main/tests/unit.spec.ts index b621346..3b12d73 100644 --- a/packages/main/tests/unit.spec.ts +++ b/packages/main/tests/unit.spec.ts @@ -22,6 +22,11 @@ vi.mock('electron', () => { bw.prototype.focus = vi.fn(); bw.prototype.restore = vi.fn(); bw.prototype.setMenuBarVisibility = vi.fn(); + bw.prototype.webContents = { + session: { + on: vi.fn(), + }, + }; const app: Pick = { getAppPath(): string {