backend/test/utils/translators/ldb/stationOutputs.ts
Fred Boniface 4b2e7e99b8 Add length to LDB Test:
Closes: #36
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-08-05 23:05:28 +01:00

46 lines
1.0 KiB
TypeScript

import type { StaffLdb, NrccMessage, TrainServices,
ServiceLocation } from '@owlboard/ts-types';
export const outputs: StaffLdb[] = [
{
generatedAt: expect.any(Date),
locationName: "Railway Station",
stationManagerCode: "RT",
nrccMessages: [
{
severity: "minor",
xhtmlMessage: "Minor Alert"
}
],
trainServices: [
{
rid: "202308017159276",
uid: "G59276",
trainid: "1M83",
operatorCode: "XC",
sta: expect.any(Date),
ata: expect.any(Date),
arrivalType: "Actual",
std: expect.any(Date),
etd: expect.any(Date),
departureType: "Estimated",
platform: "5",
length: 10,
origin: [
{
tiploc: "PLYMTH",
name: "Plymouth"
}
],
destination: [
{
tiploc: "BHAMNWS",
name: "Birmingham New Street"
}
]
}
],
busServices: [],
ferryServices: []
},
]