Add more unit tests and update integration tests

This commit is contained in:
Conor McNamara
2023-03-29 20:24:11 +01:00
parent 70d24a9e26
commit bda8885fa1
10 changed files with 126 additions and 49 deletions

View File

@ -18,6 +18,12 @@ describe('Firebase cloud function tests', function() {
expect(result.body.data[0]).haveOwnProperty('TrainCode');
expect(result.body.data[0]).haveOwnProperty('TrainDate');
expect(result.body.data[0]).haveOwnProperty('TrainType');
expect(result.body.data[0]).haveOwnProperty('Destination');
expect(result.body.data[0]).haveOwnProperty('Origin');
if (result.body.data[0]["TrainStatus"] != "N") {
expect(result.body.data[0]).haveOwnProperty('Punctuality');
}
}),
this.timeout(100000);