mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
use global fetch mock for old data test
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user