diff --git a/src/test/integration/controllers/cooperation.spec.js b/src/test/integration/controllers/cooperation.spec.js index e8a83881..efa18596 100644 --- a/src/test/integration/controllers/cooperation.spec.js +++ b/src/test/integration/controllers/cooperation.spec.js @@ -243,9 +243,7 @@ describe('Cooperation controller', () => { expect(Array.isArray(response.body.items)).toBe(true) expect(response.body.items[0]).toMatchObject({ _id: testCooperation._body._id, - offer: { - _id: testOffer._id - }, + offer: testOffer._id, initiator: testStudentUser.id, receiver: testTutorUser._id, proficiencyLevel: testCooperationData.proficiencyLevel,