Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

test(api): expect manual redirects for notification channels

Tin43a5a6ae35bf
diff --git a/tests/api-integration/notification-access.test.ts b/tests/api-integration/notification-access.test.ts
index 8dc1cdb36..7274870c8 100644
--- a/tests/api-integration/notification-access.test.ts
+++ b/tests/api-integration/notification-access.test.ts
@@ -501,7 +501,7 @@ describe("notification recipient boundaries", () => {
await deliverNotification(notification.id);
expect(fetchMock).toHaveBeenCalledTimes(3);
for (const [, options] of fetchMock.mock.calls) {
- expect(options.redirect).toBe("error");
+ expect(options.redirect).toBe("manual");
expect(options.signal).toBeInstanceOf(AbortSignal);
}
expect(log).toHaveBeenCalledTimes(3);