Skip to content
Myr

removed scope 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 a49e1f4 · Browse files · 2 files+0 added−32 removed
This commit

State

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

Diff stats

2 files+0 added−32 removed

  • tests:+0 added−32 removed

2 files+0 added−32 removed

deleted:test/fixtures/scope.jade-1 removed
1p= this.method()
modified:test/view.test.js-31 removed
310 unmodified lines
311 { url: '/' },312 { body: '<cool><p>Welcome</p></cool>' });313 },314 315 'test #render() scope': function(){316 var app = create();317 app.set('view engine', 'jade');318 319 app.get('/', function(req, res){320 req.internal = '1';321 req.method = function(){322 return this.internal;323 };324 res.render('scope.jade', { layout: false });325 });326 327 app.get('/custom', function(req, res){328 var scope = {329 internal: '2',330 method: function(){331 return this.internal;332 }333 };334 res.render('scope.jade', { layout: false, scope: scope });335 });336 337 assert.response(app,338 { url: '/' },339 { body: '<p>1</p>'});340341 assert.response(app,342 { url: '/custom' },343 { body: '<p>2</p>'});344 },345 315 'test #render() view helpers': function(beforeExit){316 var app = create()317 , calls = 0;318
581 unmodified lines