use global fetch mock for old data test

This commit is contained in:
2025-01-07 15:30:36 -08:00
parent 0f7f02239c
commit c48fd0d604

View File

@@ -224,6 +224,8 @@ describe("getEtaForShuttleAndStopId", () => {
}); });
test("getEtasForShuttleAndStopId returns old data if not expired", async () => { test("getEtasForShuttleAndStopId returns old data if not expired", async () => {
updateGlobalFetchMockJson(genericEtaDataByStopId);
const expectedEta: IEta = { const expectedEta: IEta = {
secondsRemaining: 587, secondsRemaining: 587,
shuttleId: "5577", shuttleId: "5577",