3 var express = require('../')
4 , request = require('supertest');
6 describe('res', function(){
7 describe('.locals', function(){
8 it('should be empty by default', function(done){
11 app.use(function(req, res){
17 .expect(200, {}, done)
21 it('should work when mounted', function(done){
27 blog.use(function(req, res, next){
28 res.locals.foo = 'bar';
32 app.use(function(req, res){
38 .expect(200, { foo: 'bar' }, done)