req.t --> res.t

This commit is contained in:
Matteo Pagliazzi
2015-11-19 12:17:44 +01:00
parent 6451264572
commit dd8c22584d
3 changed files with 17 additions and 18 deletions

View File

@@ -14,8 +14,8 @@ describe('getUserLanguage', () => {
let res, req, next;
let checkReqT = (req) => {
expect(req.t).to.be.a('function');
expect(req.t('help')).to.equal(i18n.t('help', req.language));
expect(res.t).to.be.a('function');
expect(res.t('help')).to.equal(i18n.t('help', req.language));
};
beforeEach(() => {