mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
Add placeholder test cases for SHUTTLE_IS_NEAR_NEXT_STOP event
This commit is contained in:
@@ -701,6 +701,24 @@ 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", () => {
|
describe("SHUTTLE_WILL_ARRIVE_AT_STOP event", () => {
|
||||||
test("emits SHUTTLE_WILL_ARRIVE_AT_STOP event before shuttle arrives at a stop", async () => {
|
test("emits SHUTTLE_WILL_ARRIVE_AT_STOP event before shuttle arrives at a stop", async () => {
|
||||||
const { stop1, sampleShuttleNotInRepository: shuttle } = await setupRouteAndOrderedStops();
|
const { stop1, sampleShuttleNotInRepository: shuttle } = await setupRouteAndOrderedStops();
|
||||||
|
|||||||
Reference in New Issue
Block a user