mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
remove check of eta pruning
This commit is contained in:
@@ -265,12 +265,6 @@ describe("ApiBasedRepositoryLoader", () => {
|
||||
describe("fetchAndUpdateEtaDataForStopId", () => {
|
||||
const stopId = "177666";
|
||||
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);
|
||||
// @ts-ignore
|
||||
const etasFromResponse = fetchEtaDataSuccessfulResponse.ETAs[stopId]
|
||||
|
||||
Reference in New Issue
Block a user