update test cases for notification service

This commit is contained in:
2025-02-02 14:28:10 -08:00
parent e30fafc9b7
commit a69ab5853c

View File

@@ -1,15 +1,15 @@
import { describe, it } from "@jest/globals"; import { describe, it } from "@jest/globals";
describe("NotificationService", () => { describe("NotificationService", () => {
describe("startReloadingNotificationTokens", () => { describe("reloadAPNsTokenIfTimePassed", () => {
it("reloads keys when first called", async () => { 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", () => { describe("scheduleNotification", () => {
it("sends a notification to given shuttle/stop ID when changed", async () => { it("sends a notification to given shuttle/stop ID when changed", async () => {