Skip to content

Commit

Permalink
again...
Browse files Browse the repository at this point in the history
  • Loading branch information
andineck committed Jun 6, 2013
1 parent c05524b commit 6a76c17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/loc.strategy.js
Expand Up @@ -16,8 +16,8 @@ app.use(function cookieTest(req, res, next) {
assert(res.locals.__n);
assert(res.locals.t);
assert(res.locals.tn);
assert(res.locals.getLocale());
assert(res.locals.isPreferredLocale());
assert(res.locals.getLocale);
assert(res.locals.isPreferredLocale);
})

// route
Expand Down
6 changes: 3 additions & 3 deletions test/loc.urlTranslate.js
Expand Up @@ -7,16 +7,16 @@ var loc = require('./fixtures/setup')(app);

// test that the cookie is set and that req.i18n and res.locals are present.
app.use(function cookieTest(req, res, next) {
next();
var cookies = res.get('Set-Cookie');
assert(~cookies.indexOf('lang='));
assert(req.i18n);
assert(res.locals.__);
assert(res.locals.__n);
assert(res.locals.t);
assert(res.locals.tn);
assert(res.locals.getLocale());
assert(res.locals.isPreferredLocale());
next();
assert(res.locals.getLocale);
assert(res.locals.isPreferredLocale);
})

// route
Expand Down

0 comments on commit 6a76c17

Please sign in to comment.