From c59ccd7f1a2f42b9a1684297799e368d7425cf86 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Mon, 31 Mar 2025 19:24:34 -0700 Subject: [PATCH] replace notifications repository with a fresh one in the test --- .../schedulers/ETANotificationSchedulerTests.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/notifications/schedulers/ETANotificationSchedulerTests.test.ts b/test/notifications/schedulers/ETANotificationSchedulerTests.test.ts index 974774d..7d9392f 100644 --- a/test/notifications/schedulers/ETANotificationSchedulerTests.test.ts +++ b/test/notifications/schedulers/ETANotificationSchedulerTests.test.ts @@ -118,6 +118,9 @@ describe("ETANotificationScheduler", () => { // detach the old callback method from the shuttle repo notificationService.stopListeningForUpdates(); + // replace the notification repository with a fresh one too + const notificationRepository = new InMemoryNotificationRepository(); + mockNotificationSenderMethods(false); const updatedNotificationSender = new MockAppleNotificationSender(false); notificationService = new ETANotificationScheduler(