mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
update test cases for notification service
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user