From a69ab5853c945987b645c684008d104092643220 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Sun, 2 Feb 2025 14:28:10 -0800 Subject: [PATCH] update test cases for notification service --- test/services/NotificationServiceTests.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/services/NotificationServiceTests.test.ts b/test/services/NotificationServiceTests.test.ts index f2b0461..741e155 100644 --- a/test/services/NotificationServiceTests.test.ts +++ b/test/services/NotificationServiceTests.test.ts @@ -1,15 +1,15 @@ import { describe, it } from "@jest/globals"; describe("NotificationService", () => { - describe("startReloadingNotificationTokens", () => { - it("reloads keys when first called", async () => { + describe("reloadAPNsTokenIfTimePassed", () => { + it("reloads the token if token hasn't been generated yet", async () => { }); - it("sets a timer to reload keys", async () => { + it("doesn't reload the token if last refreshed time is recent", async () => { }); - }); + }) describe("scheduleNotification", () => { it("sends a notification to given shuttle/stop ID when changed", async () => {