do the same with eta data

This commit is contained in:
2025-01-21 15:37:28 -08:00
parent d617d22b6d
commit 82a69ca464
2 changed files with 26 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
import { IOrderedStop, IRoute, IShuttle, IStop, ISystem } from "../src/entities/entities";
import { IEta, IOrderedStop, IRoute, IShuttle, IStop, ISystem } from "../src/entities/entities";
// Use a single set of generators in case any of the
// interfaces change in the future
@@ -42,4 +42,12 @@ export function generateMockOrderedStops(): IOrderedStop[] {
{ stopId: "st2", routeId: "r1", position: 3 },
{ stopId: "st2", routeId: "r2", position: 4 },
];
}
export function generateMockEtas(): IEta[] {
return [
{ shuttleId: "sh1", stopId: "st1", secondsRemaining: 120 },
{ shuttleId: "sh1", stopId: "st2", secondsRemaining: 180 },
{ shuttleId: "sh2", stopId: "st3", secondsRemaining: 240 },
];
}