make tests working with new tavern id

This commit is contained in:
Matteo Pagliazzi
2016-04-13 22:27:32 +02:00
parent cc024533aa
commit 57497f246f
3 changed files with 7 additions and 4 deletions

View File

@@ -3,6 +3,9 @@ import {
resetHabiticaDB,
generateGroup,
} from '../../../../helpers/api-v3-integration.helper';
import {
TAVERN_ID,
} from '../../../../../website/src/models/group';
describe('GET /groups', () => {
let user;
@@ -70,7 +73,7 @@ describe('GET /groups', () => {
await expect(user.get('/groups?type=tavern'))
.to.eventually.have.a.lengthOf(1)
.and.to.have.deep.property('[0]')
.and.to.have.property('_id', 'habitrpg');
.and.to.have.property('_id', TAVERN_ID);
});
it('returns only the user\'s party when party passed in as query', async () => {