From 54aac99a6a02c1457eea1bf42765d65c523466f7 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 13 Apr 2016 22:28:29 +0200 Subject: [PATCH] v2: make tests working with new tavern id --- test/api/v2/groups/GET-groups.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/api/v2/groups/GET-groups.test.js b/test/api/v2/groups/GET-groups.test.js index e1b7635356..0b6cd4923e 100644 --- a/test/api/v2/groups/GET-groups.test.js +++ b/test/api/v2/groups/GET-groups.test.js @@ -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); }); });