Skip to content
Myr

more tests for routing

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 461473e · Browse files · 1 file+10 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+10 added−2 removed

  • tests:+10 added−2 removed

1 file+10 added−2 removed

modified:test/router.test.js+10 added-2 removed
140 unmodified lines
141 'test optional * value': function(){142 var app = express.createServer();143 144 app.get('/admin*', function(req, res){145 res.send(req.params[0], 200);145 res.send(req.params[0]);146 });147 147148 app.get('/file/*.*', function(req, res){149 res.send(req.params[0] + ' - ' + req.params[1]);150 });151152 assert.response(app,153 { url: '/file/some.foo.bar' },154 { body: 'some.foo - bar' });155156 assert.response(app,157 { url: '/admin', },158 { body: '', status: 200 });159160 assert.response(app,
271 unmodified lines