v2: make tests working with new tavern id

This commit is contained in:
Matteo Pagliazzi
2016-04-13 22:28:29 +02:00
parent 57497f246f
commit 54aac99a6a

View File

@@ -3,6 +3,9 @@ import {
generateUser,
resetHabiticaDB,
} from '../../../helpers/api-integration/v2';
import {
TAVERN_ID,
} from '../../../../website/src/models/group';
describe('GET /groups', () => {
const NUMBER_OF_PUBLIC_GUILDS = 3;
@@ -68,7 +71,7 @@ describe('GET /groups', () => {
await expect(user.get('/groups', null, {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);
});
});