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

@@ -56,7 +56,8 @@ describe('POST /api/stations successfully', () => {
expect(res.data).toEqual({
"track": added_track,
"description": null,
"enabled": true
"enabled": true,
"responseType": "SCANSTATION"
});
});
it('creating a station with all parameters (optional set to true/empty) should return 200', async () => {
@@ -73,7 +74,8 @@ describe('POST /api/stations successfully', () => {
expect(res.data).toEqual({
"track": added_track,
"description": null,
"enabled": true
"enabled": true,
"responseType": "SCANSTATION"
});
});
it('creating a disabled station with all parameters (optional set to true/empty) should return 200', async () => {
@@ -90,7 +92,8 @@ describe('POST /api/stations successfully', () => {
expect(res.data).toEqual({
"track": added_track,
"description": null,
"enabled": false
"enabled": false,
"responseType": "SCANSTATION"
});
});
it('creating a station with all parameters (optional set) should return 200', async () => {
@@ -107,7 +110,8 @@ describe('POST /api/stations successfully', () => {
expect(res.data).toEqual({
"track": added_track,
"description": "test station for testing",
"enabled": true
"enabled": true,
"responseType": "SCANSTATION"
});
});
});