ref #163
This commit is contained in:
parent
74faec85c8
commit
f347b7ad49
@ -86,7 +86,7 @@ describe('adding + updating illegally', () => {
|
||||
it('updating with wrong id should return 406', async () => {
|
||||
const res2 = await axios.put(base + '/api/scans/trackscans/' + added_scan.id, {
|
||||
"id": added_scan.id + 1,
|
||||
"station": added_station.id,
|
||||
"track": added_track.id,
|
||||
"runner": added_runner.id
|
||||
}, axios_config);
|
||||
expect(res2.status).toEqual(406);
|
||||
@ -95,7 +95,7 @@ describe('adding + updating illegally', () => {
|
||||
it('updating with invalid station should return 404', async () => {
|
||||
const res2 = await axios.put(base + '/api/scans/trackscans/' + added_scan.id, {
|
||||
"id": added_scan.id,
|
||||
"station": 9999999999999999,
|
||||
"track": 9999999999999999,
|
||||
"runner": added_runner.id
|
||||
}, axios_config);
|
||||
expect(res2.status).toEqual(404);
|
||||
@ -104,7 +104,7 @@ describe('adding + updating illegally', () => {
|
||||
it('updating with invalid runner should return 404', async () => {
|
||||
const res2 = await axios.put(base + '/api/scans/trackscans/' + added_scan.id, {
|
||||
"id": added_scan.id,
|
||||
"station": added_station.id,
|
||||
"track": added_station.id,
|
||||
"runner": 9999999999999999999
|
||||
}, axios_config);
|
||||
expect(res2.status).toEqual(404);
|
||||
@ -211,7 +211,7 @@ describe('adding + updating successfilly', () => {
|
||||
it('updating with new runner should return 200', async () => {
|
||||
const res2 = await axios.put(base + '/api/scans/trackscans/' + added_scan.id, {
|
||||
"id": added_scan.id,
|
||||
"station": added_station.id,
|
||||
"track": added_track.id,
|
||||
"runner": added_runner2.id
|
||||
}, axios_config);
|
||||
expect(res2.status).toEqual(200);
|
||||
@ -220,7 +220,7 @@ describe('adding + updating successfilly', () => {
|
||||
it('updating with new station should return 200', async () => {
|
||||
const res2 = await axios.put(base + '/api/scans/trackscans/' + added_scan.id, {
|
||||
"id": added_scan.id,
|
||||
"station": added_station2.id,
|
||||
"track": added_track2.id,
|
||||
"runner": added_runner.id
|
||||
}, axios_config);
|
||||
expect(res2.status).toEqual(200);
|
||||
@ -229,7 +229,7 @@ describe('adding + updating successfilly', () => {
|
||||
it('updating with valid=false should return 200', async () => {
|
||||
const res2 = await axios.put(base + '/api/scans/trackscans/' + added_scan.id, {
|
||||
"id": added_scan.id,
|
||||
"station": added_station2.id,
|
||||
"track": added_track2.id,
|
||||
"runner": added_runner.id,
|
||||
"valid": false
|
||||
}, axios_config);
|
||||
|
Loading…
x
Reference in New Issue
Block a user