mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add test cases and rename some methods
This commit is contained in:
43
test/repositories/NotificationRepositoryTests.test.ts
Normal file
43
test/repositories/NotificationRepositoryTests.test.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { describe, it } from "@jest/globals";
|
||||
|
||||
describe("NotificationRepository", () => {
|
||||
describe("getAllNotificationsForShuttleAndStopId", () => {
|
||||
it("gets notifications correctly", async () => {
|
||||
|
||||
});
|
||||
|
||||
it("returns empty array if no notifications", async () => {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe("getSecondsThresholdForNotificationIfExists", () => {
|
||||
it("gets the seconds threshold if exists", async () => {
|
||||
|
||||
});
|
||||
|
||||
it("returns null if there is no seconds threshold", async () => {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe("addOrUpdateNotification", () => {
|
||||
it("adds the notification", async () => {
|
||||
|
||||
});
|
||||
|
||||
it("updates the seconds threshold if the notification exists already", async () => {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe("deleteNotificationIfExists", () => {
|
||||
it("deletes the notification", async () => {
|
||||
|
||||
});
|
||||
|
||||
it("does nothing if there's no notification", async () => {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user