3 var assert = require('assert')
4 var express = require('../')
6 describe('app', function(){
7 describe('.locals', function () {
8 it('should default object', function () {
11 assert.strictEqual(typeof app.locals, 'object')
14 describe('.settings', function () {
15 it('should contain app settings ', function () {
17 app.set('title', 'Express')
18 assert.ok(app.locals.settings)
19 assert.strictEqual(typeof app.locals.settings, 'object')
20 assert.strictEqual(app.locals.settings, app.settings)
21 assert.strictEqual(app.locals.settings.title, 'Express')