Reorganize self-updating repository tests based on method name

This commit is contained in:
2025-11-13 16:07:42 -08:00
parent 7463cb27f1
commit d302e8a2cb

View File

@@ -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();