From d302e8a2cbf21decca2599d6357527b4935cacda Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Thu, 13 Nov 2025 16:07:42 -0800 Subject: [PATCH] Reorganize self-updating repository tests based on method name --- .../__tests__/SelfUpdatingETARepositorySharedTests.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();