backend/test/utils/translators/ldb/stationOutputs.ts

45 lines
1006 B
TypeScript
Raw Normal View History

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",
origin: [
{
tiploc: "PLYMTH",
name: "Plymouth"
}
],
destination: [
{
tiploc: "BHAMNWS",
name: "Birmingham New Street"
}
]
}
],
busServices: [],
ferryServices: []
},
]