diff --git a/test/utils/translators/ldb/stationInputs.ts b/test/utils/translators/ldb/stationInputs.ts index 8a4cae8..1ffd87f 100644 --- a/test/utils/translators/ldb/stationInputs.ts +++ b/test/utils/translators/ldb/stationInputs.ts @@ -53,4 +53,51 @@ export const inputs: any[] = [ }, }, }, + { + GetBoardResult: { + generatedAt: "2023-08-01T20:37:05.559123+01:00", + locationName: "Railway Station", + crs: "RLY", + stationManager: "Network Rail", + stationManagerCode: "RT", + isTruncated: "true", + trainServices: { + service: [ + { + rid: "202308017159276", + uid: "G59276", + trainid: "1M83", + sdd: "2023-08-01", + operator: "CrossCountry", + operatorCode: "XC", + sta: "2023-08-01T20:24:00", + ata: "2023-08-01T20:27:22", + arrivalType: "Actual", + std: "2023-08-01T20:35:00", + etd: "2023-08-01T20:35:00", + departureType: "Estimated", + departureSource: "Darwin", + platform: "5", + length: "10", + origin: { + location: { + locationName: "Plymouth", + crs: "PLY", + tiploc: "PLYMTH", + }, + }, + destination: { + location: { + locationName: "Birmingham New Street", + crs: "BHM", + tiploc: "BHAMNWS", + }, + }, + category: "XX", + activities: "T", + }, + ], + }, + }, + }, ]; diff --git a/test/utils/translators/ldb/stationOutputs.ts b/test/utils/translators/ldb/stationOutputs.ts index afe14fb..dae3fe7 100644 --- a/test/utils/translators/ldb/stationOutputs.ts +++ b/test/utils/translators/ldb/stationOutputs.ts @@ -45,4 +45,37 @@ export const outputs: StaffLdb[] = [ busServices: [], ferryServices: [], }, + { + generatedAt: expect.any(Date), + locationName: "Railway Station", + stationManagerCode: "RT", + 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", + }, + ], + destination: [ + { + tiploc: "BHAMNWS", + }, + ], + }, + ], + busServices: [], + ferryServices: [], + }, ];