fix(tests): linting & more expects

Also one more tweak for invite validation responsiveness
This commit is contained in:
Sabe Jones
2018-11-14 07:43:08 -06:00
parent f635f178da
commit 64a3d08ce3
10 changed files with 40 additions and 37 deletions
@@ -53,7 +53,7 @@ describe('GET /groups/:groupId/invites', () => {
auth: {
local: {
username: invited.auth.local.username,
}
},
},
flags: {
verifiedUsername: true,
@@ -59,7 +59,7 @@ describe('GET /groups/:groupId/members', () => {
auth: {
local: {
username: user.auth.local.username,
}
},
},
flags: {
verifiedUsername: true,
@@ -145,7 +145,7 @@ describe('GET /groups/:groupId/members', () => {
let res = await user.get('/groups/party/members?includeAllMembers=true');
expect(res.length).to.equal(30);
res.forEach(member => {
expect(member).to.have.all.keys(['_id', 'id', 'profile']);
expect(member).to.have.all.keys(['_id', 'auth', 'flags', 'id', 'profile']);
expect(member.profile).to.have.all.keys(['name']);
});
});