From 4a63929cc1a5aa6ce1bc3e7a75e030369a4143d0 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Mon, 3 Feb 2025 23:50:00 -0800 Subject: [PATCH] remove cancelAllNotifications method (one less method to test --- src/services/NotificationService.ts | 4 ---- test/services/NotificationServiceTests.test.ts | 6 ------ 2 files changed, 10 deletions(-) diff --git a/src/services/NotificationService.ts b/src/services/NotificationService.ts index a59d31e..a45d177 100644 --- a/src/services/NotificationService.ts +++ b/src/services/NotificationService.ts @@ -225,8 +225,4 @@ export class NotificationService { } return this.deviceIdsToDeliverTo[tuple.toString()].includes(deviceId); } - - public cancelAllNotifications(deviceId: string) { - - } } diff --git a/test/services/NotificationServiceTests.test.ts b/test/services/NotificationServiceTests.test.ts index a4aa678..cf5308a 100644 --- a/test/services/NotificationServiceTests.test.ts +++ b/test/services/NotificationServiceTests.test.ts @@ -223,10 +223,4 @@ describe("NotificationService", () => { expect(fetch as jest.Mock).toHaveBeenCalledTimes(0); }); }); - - describe("cancelAllNotifications", () => { - it("clears all notifications scheduled to be sent", async () => { - - }); - }) });