add test setup

This commit is contained in:
2025-02-02 14:42:32 -08:00
parent a69ab5853c
commit e0820cd17b

View File

@@ -1,9 +1,18 @@
import { describe, it } from "@jest/globals";
import { beforeEach, describe, it } from "@jest/globals";
import { NotificationService } from "../../src/services/NotificationService";
import { UnoptimizedInMemoryRepository } from "../../src/repositories/UnoptimizedInMemoryRepository";
describe("NotificationService", () => {
let repository: UnoptimizedInMemoryRepository
let notificationService: NotificationService;
beforeEach(() => {
repository = new UnoptimizedInMemoryRepository();
notificationService = new NotificationService(repository);
})
describe("reloadAPNsTokenIfTimePassed", () => {
it("reloads the token if token hasn't been generated yet", async () => {
});
it("doesn't reload the token if last refreshed time is recent", async () => {