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 () => {