mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
fix test data in ApiBasedRepositoryTests
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user