From 7914a959b310829142014f2da53efb8ff53b3648 Mon Sep 17 00:00:00 2001 From: SabreCat Date: Tue, 27 Mar 2018 21:50:55 +0000 Subject: [PATCH] fix(test): add flags to expected public fields --- .../v3/integration/groups/GET-groups_groupId_members.test.js | 4 ++-- test/api/v3/integration/members/GET-members_id.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/v3/integration/groups/GET-groups_groupId_members.test.js b/test/api/v3/integration/groups/GET-groups_groupId_members.test.js index 863a80c98d..36fa584466 100644 --- a/test/api/v3/integration/groups/GET-groups_groupId_members.test.js +++ b/test/api/v3/integration/groups/GET-groups_groupId_members.test.js @@ -72,7 +72,7 @@ describe('GET /groups/:groupId/members', () => { expect(memberRes).to.have.all.keys([ // works as: object has all and only these keys '_id', 'id', 'preferences', 'profile', 'stats', 'achievements', 'party', - 'backer', 'contributor', 'auth', 'items', 'inbox', 'loginIncentives', + 'backer', 'contributor', 'auth', 'items', 'inbox', 'loginIncentives', 'flags', ]); expect(Object.keys(memberRes.auth)).to.eql(['timestamps']); expect(Object.keys(memberRes.preferences).sort()).to.eql([ @@ -93,7 +93,7 @@ describe('GET /groups/:groupId/members', () => { expect(memberRes).to.have.all.keys([ // works as: object has all and only these keys '_id', 'id', 'preferences', 'profile', 'stats', 'achievements', 'party', - 'backer', 'contributor', 'auth', 'items', 'inbox', 'loginIncentives', + 'backer', 'contributor', 'auth', 'items', 'inbox', 'loginIncentives', 'flags', ]); expect(Object.keys(memberRes.auth)).to.eql(['timestamps']); expect(Object.keys(memberRes.preferences).sort()).to.eql([ diff --git a/test/api/v3/integration/members/GET-members_id.test.js b/test/api/v3/integration/members/GET-members_id.test.js index 15e3fa9f56..729ea92e3c 100644 --- a/test/api/v3/integration/members/GET-members_id.test.js +++ b/test/api/v3/integration/members/GET-members_id.test.js @@ -32,7 +32,7 @@ describe('GET /members/:memberId', () => { let memberRes = await user.get(`/members/${member._id}`); expect(memberRes).to.have.all.keys([ // works as: object has all and only these keys '_id', 'id', 'preferences', 'profile', 'stats', 'achievements', 'party', - 'backer', 'contributor', 'auth', 'items', 'inbox', 'loginIncentives', + 'backer', 'contributor', 'auth', 'items', 'inbox', 'loginIncentives', 'flags', ]); expect(Object.keys(memberRes.auth)).to.eql(['timestamps']); expect(Object.keys(memberRes.preferences).sort()).to.eql([