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 4d9ad21 · Browse files · 1 file+17 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+17 added−1 removed

  • tests:+17 added−1 removed

1 file+17 added−1 removed

modified:test/app.router.js+17 added-1 removed
312 unmodified lines
313 request(app)314 .get('/api/users/foo.bar.json')315 .expect('users/foo.bar as json', done);316 })317 317318 it('should work cross-segment', function(done){319 var app = express();320321 app.get('/api*', function(req, res){322 res.send(req.params[0]);323 });324325 request(app)326 .get('/api')327 .expect('', function(){328 request(app)329 .get('/api/hey')330 .expect('/hey', done);331 });332 })333334 it('should allow naming', function(done){335 var app = express();336337 app.get('/api/:resource(*)', function(req, res){
217 unmodified lines