mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
replace notifications repository with a fresh one in the test
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user