implement endpoints and update test

This commit is contained in:
2025-04-16 16:52:45 -07:00
parent c9ecc18495
commit 2092827d37
2 changed files with 22 additions and 6 deletions

View File

@@ -356,7 +356,7 @@ describe("SystemResolvers", () => {
expect(parkingStructures).toHaveLength(0);
});
it("returns null if there is no parking data available", async () => {
it("returns a blank array if there is no parking data available", async () => {
context.systems[0].parkingTimedDataLoader = null;
context.systems[0].parkingRepository = null;
@@ -365,7 +365,7 @@ describe("SystemResolvers", () => {
assert(response.body.kind === "single");
expect(response.body.singleResult.errors).toBeUndefined();
const parkingStructures = (response.body.singleResult.data as any).system.parkingStructures;
expect(parkingStructures).toBeNull();
expect(parkingStructures).toHaveLength(0);
});
});