fix test data in ApiBasedRepositoryTests

This commit is contained in:
2025-01-08 16:39:30 -08:00
parent eeadfa62cb
commit a66e0ce9ad

View File

@@ -33,6 +33,7 @@ beforeEach(() => {
// Snapshots taken from the Passio GO! API // Snapshots taken from the Passio GO! API
const genericEtaDataByStopId = { const genericEtaDataByStopId = {
"ETAs": {
"177666": [ "177666": [
{ {
"OOS": 0, "OOS": 0,
@@ -143,6 +144,7 @@ const genericEtaDataByStopId = {
} }
}, },
] ]
},
} }
const genericShuttleDataBySystemId = { const genericShuttleDataBySystemId = {
"alertCRC": "23c1b91c", "alertCRC": "23c1b91c",
@@ -302,9 +304,6 @@ describe("getEtaForShuttleAndStopId", () => {
describe("getEtasForShuttleId", () => { describe("getEtasForShuttleId", () => {
test("getEtasForShuttleId returns correct ETA data", async () => { test("getEtasForShuttleId returns correct ETA data", async () => {
// Because I'm testing updateEtasForSystemIfTTL separately,
// stub it out here
updateGlobalFetchMockJson(genericEtaDataByStopId); updateGlobalFetchMockJson(genericEtaDataByStopId);
const initialCache: ApiBasedRepositoryCache = { const initialCache: ApiBasedRepositoryCache = {