mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
update mock data generators
This commit is contained in:
@@ -67,17 +67,17 @@ export function generateMockStops(): IStop[] {
|
||||
|
||||
export function generateMockOrderedStops(): IOrderedStop[] {
|
||||
return [
|
||||
{ stopId: "st1", routeId: "r1", position: 1 },
|
||||
{ stopId: "st1", routeId: "r2", position: 2 },
|
||||
{ stopId: "st2", routeId: "r1", position: 3 },
|
||||
{ stopId: "st2", routeId: "r2", position: 4 },
|
||||
{ stopId: "st1", routeId: "r1", position: 1, systemId: "sys1" },
|
||||
{ stopId: "st1", routeId: "r2", position: 2, systemId: "sys1" },
|
||||
{ stopId: "st2", routeId: "r1", position: 3, systemId: "sys1" },
|
||||
{ stopId: "st2", routeId: "r2", position: 4, systemId: "sys1" },
|
||||
];
|
||||
}
|
||||
|
||||
export function generateMockEtas(): IEta[] {
|
||||
return [
|
||||
{ shuttleId: "sh1", stopId: "st1", secondsRemaining: 120 },
|
||||
{ shuttleId: "sh1", stopId: "st2", secondsRemaining: 180 },
|
||||
{ shuttleId: "sh2", stopId: "st3", secondsRemaining: 240 },
|
||||
{ shuttleId: "sh1", stopId: "st1", secondsRemaining: 120, systemId: "sys1" },
|
||||
{ shuttleId: "sh1", stopId: "st2", secondsRemaining: 180, systemId: "sys1" },
|
||||
{ shuttleId: "sh2", stopId: "st3", secondsRemaining: 240, systemId: "sys1" },
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user