mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
remove check of eta pruning
This commit is contained in:
@@ -265,12 +265,6 @@ describe("ApiBasedRepositoryLoader", () => {
|
|||||||
describe("fetchAndUpdateEtaDataForStopId", () => {
|
describe("fetchAndUpdateEtaDataForStopId", () => {
|
||||||
const stopId = "177666";
|
const stopId = "177666";
|
||||||
it("updates ETA data for stop id if response received", async () => {
|
it("updates ETA data for stop id if response received", async () => {
|
||||||
const etasToPrune = generateMockEtas();
|
|
||||||
await Promise.all(etasToPrune.map(async (eta) => {
|
|
||||||
eta.stopId = stopId;
|
|
||||||
await loader.repository.addOrUpdateEta(eta);
|
|
||||||
}))
|
|
||||||
|
|
||||||
updateGlobalFetchMockJson(fetchEtaDataSuccessfulResponse);
|
updateGlobalFetchMockJson(fetchEtaDataSuccessfulResponse);
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const etasFromResponse = fetchEtaDataSuccessfulResponse.ETAs[stopId]
|
const etasFromResponse = fetchEtaDataSuccessfulResponse.ETAs[stopId]
|
||||||
|
|||||||
Reference in New Issue
Block a user