add arrange portion of first test

This commit is contained in:
2025-02-12 19:32:46 -08:00
parent 3ce72d79be
commit 420682dbb8

View File

@@ -233,6 +233,29 @@ describe("NotificationService", () => {
describe("getAllScheduledNotificationsForDevice", () => {
it("returns scheduled notifications for the device ID", async () => {
// Arrange
const shuttle1 = await addMockShuttleToRepository(repository, "1");
const stop = await addMockStopToRepository(repository, "1");
const { eta, notificationData1 } = generateNotificationDataAndEta(shuttle1, stop);
await notificationService.scheduleNotification(notificationData1);
const shuttle2 = {
...shuttle1,
id: "2",
}
await repository.addOrUpdateShuttle(shuttle2);
const notificationData2 = {
...notificationData1,
shuttleId: shuttle2.id,
}
await notificationService.scheduleNotification(notificationData2);
// Act
// Assert
});