Skip to content
Myr

added .settings 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 c824da0 · Browse files · 1 file+9 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+9 added−0 removed

  • tests:+9 added−0 removed

1 file+9 added−0 removed

modified:test/express.test.js+9 added
301 unmodified lines
302 ret.should.equal(app);303 app.set('title').should.equal('My App');304 app.set('something').should.equal('else');305 },306307 'test .settings': function(){308 var app = express.createServer();309 app.set('title', 'My App');310 app.settings.title.should.equal('My App');311 app.settings.title = 'Something Else';312 app.settings.title.should.equal('Something Else');313 app.set('title').should.equal('Something Else');314 },315 316 'test #enable()': function(){317 var app = express.createServer();318 var ret = app.enable('some feature');
247 unmodified lines