From 0343c1452b2f67e77d90174613beee81411fb8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Thu, 23 May 2024 14:46:36 +0200 Subject: [PATCH] Update tests/setup.ts Co-authored-by: michael1011 --- tests/setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/setup.ts b/tests/setup.ts index 1607b001..58f57fc7 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -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;