Remove SHUTTLE_IS_NEAR_NEXT_STOP event and placeholder tests

This commit is contained in:
2025-11-20 17:47:13 -08:00
parent 22322e5f0a
commit ddab9b96ff
2 changed files with 0 additions and 20 deletions

View File

@@ -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,
}

View File

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