Skip to content
Myr

Added failing "home" setting test

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 baae446 · Browse files · 1 file+5 added−1 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+5 added−1 removed

  • tests:+5 added−1 removed

1 file+5 added−1 removed

modified:test/express.test.js+5 added-1 removed
265 unmodified lines
266 },267 268 'test mounting': function(assert){269 var app = express.createServer(),270 blog = express.createServer();270 blog = express.createServer(),271 map = express.createServer();272 273 app.use('/blog', blog);274 app.use('/contact', map);275 assert.equal('/blog', blog.route);276 assert.equal('/contact', map.route);277 278 app.get('/', function(req, res){279 assert.equal('/', app.set('home'), "home did not default /");280 assert.equal('/blog', blog.set('home'), "home did not default to Server#route when mounted");281 assert.equal('/contact/map', map.set('home'), 'home did not prepend route on Server#use()');282 res.send('main app');283 });284285 blog.get('/', function(req, res){
21 unmodified lines