rename method to define what happens if notification doesn't exist

This commit is contained in:
2025-02-03 23:45:55 -08:00
parent d1db9b3742
commit 403bec7c63
2 changed files with 2 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ export class NotificationService {
* @param shuttleId Shuttle ID of the ETA object. * @param shuttleId Shuttle ID of the ETA object.
* @param stopId Stop ID of the ETA object. * @param stopId Stop ID of the ETA object.
*/ */
public async cancelNotification({ deviceId, shuttleId, stopId }: ScheduledNotificationData) { public async cancelNotificationIfExists({ deviceId, shuttleId, stopId }: ScheduledNotificationData) {
} }

View File

@@ -215,7 +215,7 @@ describe("NotificationService", () => {
await notificationService.scheduleNotification(notificationData1); await notificationService.scheduleNotification(notificationData1);
// Act // Act
await notificationService.cancelNotification(notificationData1); await notificationService.cancelNotificationIfExists(notificationData1);
await repository.addOrUpdateEta(eta); await repository.addOrUpdateEta(eta);
// Assert // Assert