Permalink
Browse files

tests: add test for route match on dot separator

  • Loading branch information...
dougwilson committed Feb 18, 2017
1 parent c915509 commit 7a1025e2719a01d6124a0572cef059f86554bf75
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/mounting.js
View
@@ -41,6 +41,16 @@ describe('app.use()', function(){
.expect(200, '/article/1', done);
});
+ it('should match up to dot', function (done) {
+ app.use('/blog', function (req, res) {
+ res.end(req.url)
+ })
+
+ request(app)
+ .get('/blog.json')
+ .expect(200, done)
+ })
+
it('should not match shorter path', function (done) {
app.use('/blog-o-rama', function (req, res) {
res.end(req.url);

0 comments on commit 7a1025e

Please sign in to comment.