add setup of loader

This commit is contained in:
2025-04-10 16:36:28 -07:00
parent 45df97f15c
commit 8c810c5224

View File

@@ -1,8 +1,22 @@
import { describe, it } from "@jest/globals"; import { beforeEach, describe, it } from "@jest/globals";
import {
ChapmanTimedApiBasedParkingRepositoryLoader
} from "../../../src/loaders/ParkingRepositoryLoaders/ChapmanTimedApiBasedParkingRepositoryLoader";
import { InMemoryParkingRepository } from "../../../src/repositories/InMemoryParkingRepository";
import { resetGlobalFetchMockJson } from "../../testHelpers/fetchMockHelpers";
describe("ChapmanTimedApiBasedParkingRepositoryLoader", () => { describe("ChapmanTimedApiBasedParkingRepositoryLoader", () => {
let loader: ChapmanTimedApiBasedParkingRepositoryLoader;
beforeEach(() => {
loader = new ChapmanTimedApiBasedParkingRepositoryLoader(
new InMemoryParkingRepository(),
);
resetGlobalFetchMockJson();
});
describe("fetchAndUpdateParkingStructures", () => { describe("fetchAndUpdateParkingStructures", () => {
it("should fetch and update parking successfully", async () => { it("fetches and update parking structures with unique IDs", async () => {
}); });