Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cb2-13572): added example test stations for vef #151

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration/testStationsFunction.intTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe("getTestStations", () => {
context("when database is populated", () => {
it("should return only the active test stations", () => {
return LambdaTester(getTestStations).expectResolve((result: any) => {
expect(testStations).toHaveLength(24);
expect(JSON.parse(result.body)).toHaveLength(23);
expect(testStations).toHaveLength(27);
expect(JSON.parse(result.body)).toHaveLength(25);
expect(result.statusCode).toEqual(200);
});
});
Expand Down
51 changes: 51 additions & 0 deletions tests/resources/test-stations.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,56 @@
"testStationStatus": "active",
"testStationTown": "Ruthin",
"testStationType": "atf"
},
{
"testStationId": "25",
"testStationAddress": "1042 Bow Lane",
"testStationContactNumber": "02074892500",
"testStationEmails": [],
"testStationGeneralNotes": "Example of English VEF site with inactive status",
"testStationAccessNotes": "",
"testStationLatitude": 181,
"testStationLongitude": 362,
"testStationName": "VEF 1",
"testStationPNumber": "V99900",
"testStationPostcode": "EC4M 9DT",
"testStationCountry": "England",
"testStationStatus": "inactive",
"testStationTown": "London",
"testStationType": "vef"
},
{
"testStationId": "26",
"testStationAddress": "3400 Tan-y-Bryn Road",
"testStationContactNumber": "01492879456",
"testStationEmails": [],
"testStationGeneralNotes": "Example of Welsh VEF site with active status",
"testStationAccessNotes": "",
"testStationLatitude": 181,
"testStationLongitude": 362,
"testStationName": "New Test ATF 2",
"testStationPNumber": "V99901",
"testStationPostcode": "LL30 1UU",
"testStationCountry": "Wales",
"testStationStatus": "active",
"testStationTown": "Llandudno",
"testStationType": "vef"
},
{
"testStationId": "27",
"testStationAddress": "2108 Church Street",
"testStationContactNumber": "02088925908",
"testStationEmails": [],
"testStationGeneralNotes": "Example of English VEF site with active status",
"testStationAccessNotes": "",
"testStationLatitude": 181,
"testStationLongitude": 362,
"testStationName": "ATF 3",
"testStationPNumber": "V99902",
"testStationPostcode": "TW1 3NJ",
"testStationCountry": "England",
"testStationStatus": "active",
"testStationTown": "Twickenham",
"testStationType": "vef"
}
]
2 changes: 1 addition & 1 deletion tests/unit/TestStationService.unitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("TestStationService", () => {
return testStationService
.getTestStationList()
.then((returnedRecords: any) => {
expect(returnedRecords.length).toEqual(24);
expect(returnedRecords.length).toEqual(27);
});
});
});
Expand Down
Loading