fix test error message to use variable in locales string

This commit is contained in:
Alys 2017-04-12 20:08:21 +10:00 committed by Sabe Jones
parent fbda3a87ef
commit 2f010e4689

View file

@ -4,6 +4,7 @@ import {
translate as t, translate as t,
} from '../../../../helpers/api-v3-integration.helper'; } from '../../../../helpers/api-v3-integration.helper';
import { v4 as generateUUID } from 'uuid'; import { v4 as generateUUID } from 'uuid';
import nconf from 'nconf';
const INVITES_LIMIT = 100; const INVITES_LIMIT = 100;
const PARTY_LIMIT_MEMBERS = 30; const PARTY_LIMIT_MEMBERS = 30;
@ -223,7 +224,7 @@ describe('Post /groups/:groupId/invite', () => {
.to.eventually.be.rejected.and.eql({ .to.eventually.be.rejected.and.eql({
code: 401, code: 401,
error: 'NotAuthorized', error: 'NotAuthorized',
message: t('inviteLimitReached'), message: t('inviteLimitReached', {techAssistanceEmail: nconf.get('EMAILS:TECH_ASSISTANCE_EMAIL')}),
}); });
}); });