replace notifications repository with a fresh one in the test

This commit is contained in:
2025-03-31 19:24:34 -07:00
parent a95c89c15b
commit c59ccd7f1a

View File

@@ -118,6 +118,9 @@ describe("ETANotificationScheduler", () => {
// detach the old callback method from the shuttle repo // detach the old callback method from the shuttle repo
notificationService.stopListeningForUpdates(); notificationService.stopListeningForUpdates();
// replace the notification repository with a fresh one too
const notificationRepository = new InMemoryNotificationRepository();
mockNotificationSenderMethods(false); mockNotificationSenderMethods(false);
const updatedNotificationSender = new MockAppleNotificationSender(false); const updatedNotificationSender = new MockAppleNotificationSender(false);
notificationService = new ETANotificationScheduler( notificationService = new ETANotificationScheduler(