Skip to content
Myr

tests: fix failing test on Node.js 0.11.15

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

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent b275613 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:test/app.router.js+2 added-2 removed
9 unmodified lines
10 var app = express();11 var router = new express.Router();1213 function handler1(req, res, next){14 res.setHeader('x-user-id', req.params.id);14 res.setHeader('x-user-id', String(req.params.id));15 next()16 }1718 function handler2(req, res){19 res.send(req.params.id);20 }2122 router.use(function(req, res, next){23 res.setHeader('x-router', req.params.id);23 res.setHeader('x-router', String(req.params.id));24 next();25 });2627 app.get('/user/:id', handler1, router, handler2);
918 unmodified lines