From 490d92eb2f80eb8e4b34dcfc47179832984ff463 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sun, 24 Jan 2016 12:59:54 +0100 Subject: [PATCH] fix increments memberCount when joining guilds test --- .../v3/integration/groups/POST-groups_groupId_join.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api/v3/integration/groups/POST-groups_groupId_join.test.js b/test/api/v3/integration/groups/POST-groups_groupId_join.test.js index 6c5ee11b35..4c1e422ce6 100644 --- a/test/api/v3/integration/groups/POST-groups_groupId_join.test.js +++ b/test/api/v3/integration/groups/POST-groups_groupId_join.test.js @@ -48,11 +48,11 @@ describe('POST /group/:groupId/join', () => { }); it('increments memberCount when joining guilds', async () => { - let oldMemberCount = guild.memberCount; + let oldMemberCount = publicGuild.memberCount; await joiningUser.post(`/groups/${publicGuild._id}/join`); - await expect(invitedUser.get(`/groups/${guild._id}`)).to.eventually.have.property('memberCount', oldMemberCount + 1); + await expect(invitedUser.get(`/groups/${publicGuild._id}`)).to.eventually.have.property('memberCount', oldMemberCount + 1); }); });