@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user