Skip to content
Myr

more tests

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 624dad5 · Browse files · 1 file+13 added−1 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+13 added−1 removed

  • tests:+13 added−1 removed

1 file+13 added−1 removed

modified:test/router.test.js+13 added-1 removed
142 unmodified lines
143 144 app.get('/user/:name.:format?', function(req, res){145 res.send(req.params.name + ' - ' + (req.params.format || ''));146 });147 147148 app.get('/commit/:from-:to.:format?', function(req, res, next){149 res.send(req.params.from + '..' + req.params.to + ' ' + (req.params.format || ''));150 });151152 assert.response(app,153 { url: '/commit/foo-baz.bar.patch' },154 { body: 'foo..baz.bar patch' });155156 assert.response(app,157 { url: '/commit/foo-baz' },158 { body: 'foo..baz ' });159160 assert.response(app,161 { url: '/user/foo' },162 { body: 'foo - ' });163 164 assert.response(app,
299 unmodified lines