@@ -136,6 +136,7 @@ describe('POST /api/contacts working (with group)', () => {
|
||||
expect(res.status).toEqual(200);
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
delete res.data.id;
|
||||
delete res.data.groups[0].teams;
|
||||
expect(res.data).toEqual({
|
||||
"firstname": "first",
|
||||
"middlename": null,
|
||||
@@ -189,6 +190,7 @@ describe('POST /api/contacts working (with group)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
added_contact = res.data
|
||||
delete res.data.id;
|
||||
delete res.data.groups[0].teams;
|
||||
expect(res.data).toEqual({
|
||||
"firstname": "first",
|
||||
"middlename": null,
|
||||
|
||||
@@ -86,7 +86,8 @@ describe('Update contact group after adding (should work)', () => {
|
||||
}, axios_config);
|
||||
expect(res.status).toEqual(200);
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
added_contact = res.data
|
||||
added_contact = res.data;
|
||||
delete res.data.groups[0].teams;
|
||||
expect(res.data).toEqual({
|
||||
"id": res.data.id,
|
||||
"firstname": "first",
|
||||
@@ -141,6 +142,7 @@ describe('Update contact group after adding (should work)', () => {
|
||||
}, axios_config);
|
||||
expect(res.status).toEqual(200);
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
delete res.data.groups[0].teams;
|
||||
expect(res.data).toEqual({
|
||||
"id": res.data.id,
|
||||
"firstname": "first",
|
||||
|
||||
Reference in New Issue
Block a user