mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add test cases
This commit is contained in:
@@ -429,6 +429,66 @@ describe("UnoptimizedInMemoryRepository", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe("removeSystem", () => {
|
||||||
|
test("removes system given ID", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
test("does nothing if system doesn't exist", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("removeRoute", () => {
|
||||||
|
test("removes route given ID", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
test("does nothing if route doesn't exist", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("removeShuttle", () => {
|
||||||
|
test("removes shuttle given ID", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
test("does nothing if shuttle doesn't exist", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("removeStop", () => {
|
||||||
|
test("removes stop given ID", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
test("does nothing if stop doesn't exist", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("removeOrderedStop", () => {
|
||||||
|
test("removes ordered stop given stop ID and route ID", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
test("does nothing if ordered stop doesn't exist", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("removeEta", () => {
|
||||||
|
test("removes eta given shuttle ID and stop ID", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
test("does nothing if eta doesn't exist", async () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe("clearSystemData", () => {
|
describe("clearSystemData", () => {
|
||||||
test("clears all systems from the repository", async () => {
|
test("clears all systems from the repository", async () => {
|
||||||
const mockSystems = generateMockSystems();
|
const mockSystems = generateMockSystems();
|
||||||
|
|||||||
Reference in New Issue
Block a user