Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyaiox committed Oct 7, 2024
1 parent ed9493e commit 7ef327e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/main/tests/unit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Electron.App, 'getAppPath' | 'getPath' | 'getVersion' | 'on'> = {
getAppPath(): string {
Expand Down

0 comments on commit 7ef327e

Please sign in to comment.