Skip to content
Myr

add test for inherited mounted app settings

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

authored by Aaron Heckmann · committed by Tj Holowaychuk · parent 4900810 · Browse files · 1 file+5 added−0 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−0 removed

  • tests:+5 added−0 removed

1 file+5 added−0 removed

modified:test/express.test.js+5 added
286 unmodified lines
287 app.use('/contact', map);288 assert.equal('/blog', blog.route);289 assert.equal('/contact', map.route);290 assert.ok(called, 'mounted() hook failed');291292 app.set("test", "parent setting");293 assert.equal(blog.set("test"), "parent setting", "settings did not inherit from parent app")294 blog.set("test", "overridden");295 assert.equal(blog.set("test"), "overridden", "mounted app setting did not override parent app")296 297 app.get('/', function(req, res){298 assert.equal('/', app.set('home'), "home did not default to /");299 assert.equal('/blog', blog.set('home'), "home did not default to Server#route when mounted");
26 unmodified lines