mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
use generator method for shuttles
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ISystem } from "../src/entities/entities";
|
||||
import { IShuttle, ISystem } from "../src/entities/entities";
|
||||
|
||||
|
||||
export function generateMockSystems(): ISystem[] {
|
||||
@@ -7,4 +7,12 @@ export function generateMockSystems(): ISystem[] {
|
||||
{ id: "2", name: "System B" },
|
||||
{ id: "3", name: "System C" },
|
||||
];
|
||||
}
|
||||
|
||||
export function generateMockShuttles(): IShuttle[] {
|
||||
return [
|
||||
{ id: "sh1", name: "Shuttle A", routeId: "r1", systemId: "sys1", coordinates: { latitude: 10, longitude: 20 } },
|
||||
{ id: "sh2", name: "Shuttle B", routeId: "r2", systemId: "sys2", coordinates: { latitude: 15, longitude: 25 } },
|
||||
{ id: "sh3", name: "Shuttle C", routeId: "r3", systemId: "sys3", coordinates: { latitude: 30, longitude: 40 } },
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user