fix tests failures (#8422)

* fix tests failures

* make sure _meta is not public

* fix typo

* fix typo
This commit is contained in:
Matteo Pagliazzi
2017-01-18 20:17:56 +01:00
committed by GitHub
parent 4bf4c3a6c2
commit 68f4275c44
8 changed files with 36 additions and 5 deletions

View File

@@ -203,6 +203,10 @@ describe('POST /groups/:groupId/quests/invite/:questKey', () => {
expect(group.chat[0].text).to.exist;
expect(group.chat[0]._meta).to.exist;
expect(group.chat[0]._meta).to.have.all.keys(['participatingMembers']);
let returnedGroup = await groupLeader.get(`/groups/${group._id}`);
expect(returnedGroup.chat[0]._meta).to.be.undefined;
});
});
});