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(