mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
Remove SHUTTLE_IS_NEAR_NEXT_STOP event and placeholder tests
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user