Skip to content
Myr

adjust locals tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 84f8228 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:test/res.render.js+2 added-2 removed
123 unmodified lines
124 app.set('views', __dirname + '/fixtures');125 app.locals.user = { name: 'tobi' };126127 app.use(function(req, res){128 res.render('user.jade', {});128 res.render('user.jade');129 });130131 request(app)132 .get('/')
6 unmodified lines
139 app.set('views', __dirname + '/fixtures');140141 app.use(function(req, res){142 res.locals.user = { name: 'tobi' };143 res.render('user.jade', {});143 res.render('user.jade');144 });145146 request(app)147 .get('/')
110 unmodified lines