From ddab9b96ff58cfcd147e4040cf2251322223f907 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Thu, 20 Nov 2025 17:47:13 -0800 Subject: [PATCH] Remove SHUTTLE_IS_NEAR_NEXT_STOP event and placeholder tests --- .../shuttle/ShuttleGetterRepository.ts | 2 -- .../ShuttleRepositorySharedTests.test.ts | 18 ------------------ 2 files changed, 20 deletions(-) diff --git a/src/repositories/shuttle/ShuttleGetterRepository.ts b/src/repositories/shuttle/ShuttleGetterRepository.ts index 78715a3..1518c93 100644 --- a/src/repositories/shuttle/ShuttleGetterRepository.ts +++ b/src/repositories/shuttle/ShuttleGetterRepository.ts @@ -4,7 +4,6 @@ import type EventEmitter from "node:events"; export const ShuttleRepositoryEvent = { SHUTTLE_UPDATED: "shuttleUpdated", SHUTTLE_REMOVED: "shuttleRemoved", - SHUTTLE_IS_NEAR_NEXT_STOP: "shuttleIsNearNextStop", SHUTTLE_WILL_ARRIVE_AT_STOP: "shuttleArrivedAtStop", SHUTTLE_WILL_LEAVE_STOP: "shuttleWillLeaveStop", } as const; @@ -28,7 +27,6 @@ export interface ShuttleWillLeaveStopPayload { export interface ShuttleRepositoryEventPayloads { [ShuttleRepositoryEvent.SHUTTLE_UPDATED]: IShuttle, [ShuttleRepositoryEvent.SHUTTLE_REMOVED]: IShuttle, - [ShuttleRepositoryEvent.SHUTTLE_IS_NEAR_NEXT_STOP]: ShuttleIsNearStopPayload, [ShuttleRepositoryEvent.SHUTTLE_WILL_ARRIVE_AT_STOP]: ShuttleWillArriveAtStopPayload, [ShuttleRepositoryEvent.SHUTTLE_WILL_LEAVE_STOP]: ShuttleWillLeaveStopPayload, } diff --git a/src/repositories/shuttle/__tests__/ShuttleRepositorySharedTests.test.ts b/src/repositories/shuttle/__tests__/ShuttleRepositorySharedTests.test.ts index 96afb73..e8e4aa2 100644 --- a/src/repositories/shuttle/__tests__/ShuttleRepositorySharedTests.test.ts +++ b/src/repositories/shuttle/__tests__/ShuttleRepositorySharedTests.test.ts @@ -701,24 +701,6 @@ describe.each(repositoryImplementations)('$name', (holder) => { }); }); - describe("SHUTTLE_IS_NEAR_NEXT_STOP event", () => { - test("emits SHUTTLE_IS_NEAR_NEXT_STOP when shuttle is within a set proximity of the next stop", async () => { - throw new Error("Not implemented"); - }); - - test("does not emit event when shuttle is near a stop, but it's not the shuttle's next stop", async () => { - throw new Error("Not implemented"); - }); - - test("only emits the event once", async () => { - throw new Error("Not implemented"); - }); - - test("does not emit event when shuttle is not near a stop", async () => { - throw new Error("Not implemented"); - }); - }); - describe("SHUTTLE_WILL_ARRIVE_AT_STOP event", () => { test("emits SHUTTLE_WILL_ARRIVE_AT_STOP event before shuttle arrives at a stop", async () => { const { stop1, sampleShuttleNotInRepository: shuttle } = await setupRouteAndOrderedStops();