parent
e40e6faebd
commit
e7cd68e1c8
|
@ -100,6 +100,7 @@ describe('adding + updating successfilly', () => {
|
|||
"group": added_org.id
|
||||
}, axios_config);
|
||||
delete res2.data.group;
|
||||
delete res2.data.distance;
|
||||
added_runner = res2.data;
|
||||
expect(res2.status).toEqual(200);
|
||||
expect(res2.headers['content-type']).toContain("application/json")
|
||||
|
@ -121,6 +122,7 @@ describe('adding + updating successfilly', () => {
|
|||
}, axios_config);
|
||||
expect(res2.status).toEqual(200);
|
||||
expect(res2.headers['content-type']).toContain("application/json")
|
||||
delete res2.data.runner.distance;
|
||||
expect(res2.data).toEqual({
|
||||
"id": added_scan.id,
|
||||
"runner": added_runner,
|
||||
|
@ -137,7 +139,8 @@ describe('adding + updating successfilly', () => {
|
|||
"valid": false
|
||||
}, axios_config);
|
||||
expect(res2.status).toEqual(200);
|
||||
expect(res2.headers['content-type']).toContain("application/json")
|
||||
expect(res2.headers['content-type']).toContain("application/json");
|
||||
delete res2.data.runner.distance;
|
||||
expect(res2.data).toEqual({
|
||||
"id": added_scan.id,
|
||||
"runner": added_runner,
|
||||
|
@ -152,6 +155,7 @@ describe('adding + updating successfilly', () => {
|
|||
"group": added_org.id
|
||||
}, axios_config);
|
||||
delete res2.data.group;
|
||||
delete res2.data.distance;
|
||||
added_runner2 = res2.data;
|
||||
expect(res2.status).toEqual(200);
|
||||
expect(res2.headers['content-type']).toContain("application/json")
|
||||
|
@ -164,6 +168,7 @@ describe('adding + updating successfilly', () => {
|
|||
}, axios_config);
|
||||
expect(res2.status).toEqual(200);
|
||||
expect(res2.headers['content-type']).toContain("application/json");
|
||||
delete res2.data.runner.distance;
|
||||
expect(res2.data).toEqual({
|
||||
"id": added_scan.id,
|
||||
"runner": added_runner2,
|
||||
|
|
Loading…
Reference in New Issue