Skip to content
Myr

added param decoding 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 c4e0035 · Browse files · 1 file+12 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+12 added−0 removed

  • tests:+12 added−0 removed

1 file+12 added−0 removed

modified:test/app.router.js+12 added
22 unmodified lines
23 })24 });25 })2627 it('should decode params', function(done){28 var app = express();2930 app.get('/:name', function(req, res, next){31 res.send(req.params.name);32 });3334 request(app)35 .get('/foo%2Fbar')36 .expect('foo/bar', done);37 })3839 it('should be .use()able', function(done){40 var app = express();4142 var calls = [];
496 unmodified lines