@@ -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"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user