Skip to content

Commit

Permalink
Update tests/setup.ts
Browse files Browse the repository at this point in the history
Co-authored-by: michael1011 <[email protected]>
  • Loading branch information
dni and michael1011 committed May 23, 2024
1 parent 888ba08 commit 0343c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ regtest.loglevel = "error";
setConfig(regtest);

globalThis.Notification = {
requestPermission: () => new Promise(() => jest.fn()),
requestPermission: jest.fn().mockResolvedValue(true),
permission: "granted",
} as unknown as jest.Mocked<typeof Notification>;

0 comments on commit 0343c14

Please sign in to comment.