We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acc4a61 commit 1f71faeCopy full SHA for 1f71fae
test/app.router.js
@@ -563,6 +563,30 @@ describe('app.router', function(){
563
})
564
565
describe('*', function(){
566
+ it('should capture everything', function (done) {
567
+ var app = express()
568
+
569
+ app.get('*', function (req, res) {
570
+ res.end(req.params[0])
571
+ })
572
573
+ request(app)
574
+ .get('/user/tobi.json')
575
+ .expect('/user/tobi.json', done)
576
577
578
+ it('should decore the capture', function (done) {
579
580
581
582
583
584
585
586
+ .get('/user/tobi%20and%20loki.json')
587
+ .expect('/user/tobi and loki.json', done)
588
589
590
it('should denote a greedy capture group', function(done){
591
var app = express();
592
0 commit comments