Skip to content

Commit

Permalink
Updated party test to conform to new leader populate
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHollidayInn committed Jan 17, 2016
1 parent b60e0a4 commit c5947ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/api/v3/integration/groups/GET-groups.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('GET /groups', () => {
await expect(user.get('/groups?type=party'))
.to.eventually.have.a.lengthOf(1)
.and.to.have.deep.property('[0]')
.and.to.have.property('leader', user._id);
.and.to.have.property('leader._id', user._id);
});

it('returns all public guilds when publicGuilds passed in as query', async () => {
Expand All @@ -93,7 +93,7 @@ describe('GET /groups', () => {
it('returns a list of groups user has access to', async () => {
let groups = await user.get('/groups?type=privateGuilds,publicGuilds,party');

await expect(groups.length)
expect(groups.length)
.to.eql(NUMBER_OF_GROUPS_USER_CAN_VIEW);
});
});

0 comments on commit c5947ca

Please sign in to comment.