mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
Added app.locals.settings test
This commit is contained in:
parent
abb414c702
commit
429e48d873
|
|
@ -14,4 +14,15 @@ describe('app', function(){
|
|||
app.locals.age.should.equal(2);
|
||||
})
|
||||
})
|
||||
|
||||
describe('.locals.settings', function(){
|
||||
it('should expose app settings', function(){
|
||||
var app = express();
|
||||
app.set('title', 'House of Manny');
|
||||
var obj = app.locals.settings;
|
||||
obj.should.have.property('root', '/');
|
||||
obj.should.have.property('env', 'test');
|
||||
obj.should.have.property('title', 'House of Manny');
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user