Adjusted tests for the new responseType parameter (part 1)

ref #132
This commit is contained in:
2021-01-29 18:46:15 +01:00
parent 2a87819486
commit bcc15e4286
18 changed files with 113 additions and 62 deletions

View File

@@ -54,7 +54,8 @@ describe('POST /api/tracks successfully', () => {
expect(res.data).toEqual({
"name": "testtrack",
"distance": 200,
"minimumLapTime": null
"minimumLapTime": null,
"responseType": "TRACK"
})
});
it('creating a track with all parameters (optional set to null) should return 200', async () => {
@@ -69,7 +70,8 @@ describe('POST /api/tracks successfully', () => {
expect(res.data).toEqual({
"name": "testtrack",
"distance": 200,
"minimumLapTime": null
"minimumLapTime": null,
"responseType": "TRACK"
})
});
it('creating a track with all parameters should return 200', async () => {
@@ -84,7 +86,8 @@ describe('POST /api/tracks successfully', () => {
expect(res.data).toEqual({
"name": "testtrack",
"distance": 200,
"minimumLapTime": 123
"minimumLapTime": 123,
"responseType": "TRACK"
})
});
});