Enable guild challenge prize to use guild bank gems (#7840)

* add leader property to getGroups

* Add test coverage
This commit is contained in:
Oziris
2016-08-01 16:31:31 -03:00
committed by Blade Barringer
parent a8226b2363
commit d51bd68201
3 changed files with 30 additions and 4 deletions

View File

@@ -45,6 +45,7 @@ describe('GET challenges/user', () => {
type: publicGuild.type,
privacy: publicGuild.privacy,
name: publicGuild.name,
leader: publicGuild.leader._id,
});
});
@@ -64,6 +65,7 @@ describe('GET challenges/user', () => {
type: publicGuild.type,
privacy: publicGuild.privacy,
name: publicGuild.name,
leader: publicGuild.leader._id,
});
let foundChallenge2 = _.find(challenges, { _id: challenge2._id });
expect(foundChallenge2).to.exist;
@@ -78,6 +80,7 @@ describe('GET challenges/user', () => {
type: publicGuild.type,
privacy: publicGuild.privacy,
name: publicGuild.name,
leader: publicGuild.leader._id,
});
});
@@ -97,6 +100,7 @@ describe('GET challenges/user', () => {
type: publicGuild.type,
privacy: publicGuild.privacy,
name: publicGuild.name,
leader: publicGuild.leader._id,
});
let foundChallenge2 = _.find(challenges, { _id: challenge2._id });
expect(foundChallenge2).to.exist;
@@ -111,6 +115,7 @@ describe('GET challenges/user', () => {
type: publicGuild.type,
privacy: publicGuild.privacy,
name: publicGuild.name,
leader: publicGuild.leader._id,
});
});