mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
Update function calls within tests where shuttle repositories are a dependency
This commit is contained in:
@@ -80,7 +80,7 @@ describe("ETANotificationScheduler", () => {
|
||||
// Act
|
||||
await notificationRepository.addOrUpdateNotification(notificationData1);
|
||||
await notificationRepository.addOrUpdateNotification(notificationData2);
|
||||
await shuttleRepository.addOrUpdateEta(eta);
|
||||
await shuttleRepository.addOrUpdateEtaFromExternalSource(eta);
|
||||
|
||||
// Assert
|
||||
// Wait for the callback to actually be called
|
||||
@@ -103,7 +103,7 @@ describe("ETANotificationScheduler", () => {
|
||||
|
||||
// Act
|
||||
await notificationRepository.addOrUpdateNotification(notificationData1);
|
||||
await shuttleRepository.addOrUpdateEta(eta);
|
||||
await shuttleRepository.addOrUpdateEtaFromExternalSource(eta);
|
||||
|
||||
// Assert
|
||||
await waitForMilliseconds(500);
|
||||
@@ -136,7 +136,7 @@ describe("ETANotificationScheduler", () => {
|
||||
|
||||
// Act
|
||||
await notificationRepository.addOrUpdateNotification(notificationData1);
|
||||
await shuttleRepository.addOrUpdateEta(eta);
|
||||
await shuttleRepository.addOrUpdateEtaFromExternalSource(eta);
|
||||
|
||||
// Assert
|
||||
// The notification should stay scheduled to be retried once
|
||||
|
||||
Reference in New Issue
Block a user