Skip to content
Myr

literal . 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 114f272 · Browse files · 1 file+15 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+15 added−0 removed

  • tests:+15 added−0 removed

1 file+15 added−0 removed

modified:test/app.router.js+15 added
219 unmodified lines
220 .get('/user/tj')221 .expect(404, done);222 });223 })224 225 it('should allow literal "."', function(done){226 var app = express();227228 app.get('/api/users/:from..:to', function(req, res){229 var from = req.params.from230 , to = req.params.to;231232 res.end('users from ' + from + ' to ' + to);233 });234235 request(app)236 .get('/api/users/1..50')237 .expect('users from 1 to 50', done);238 })239240 describe('*', function(){241 it('should denote a greedy capture group', function(done){242 var app = express();243
139 unmodified lines