diff --git a/src/repositories/shuttle/eta/__tests__/SelfUpdatingETARepositorySharedTests.test.ts b/src/repositories/shuttle/eta/__tests__/SelfUpdatingETARepositorySharedTests.test.ts index cbf349f..539b35b 100644 --- a/src/repositories/shuttle/eta/__tests__/SelfUpdatingETARepositorySharedTests.test.ts +++ b/src/repositories/shuttle/eta/__tests__/SelfUpdatingETARepositorySharedTests.test.ts @@ -73,7 +73,7 @@ describe.each(repositoryImplementations)('$name', (holder) => { return await setupRouteAndOrderedStopsForShuttleRepository(shuttleRepository); } - describe("addOrUpdateShuttle triggers ETA calculations", () => { + describe("handleShuttleWillArriveAtStop", () => { test("updates how long the shuttle took to get from one stop to another", async () => { const { route, systemId, stop2, stop1 } = await setupRouteAndOrderedStops(); @@ -109,7 +109,9 @@ describe.each(repositoryImplementations)('$name', (holder) => { }); expect(travelTime).toEqual(15 * 60); }); + }); + describe("handleShuttleUpdate", () =>{ test("adds an ETA entry based on historical data", async () => { const { route, systemId, stop1, stop2 } = await setupRouteAndOrderedStops();