Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nrstott committed Feb 6, 2013
1 parent d7939c4 commit c5e58e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/router.test.js
Expand Up @@ -270,10 +270,15 @@ test('matches paths that include encoded spaces', function(t) {
}); });


test('matches dot (".") literally in paths', function(t) { test('matches dot (".") literally in paths', function(t) {
var router = simpleRouter('/foo.bar'); var router = bogart.router()
, respFromRoute = bogart.text('hello');

router.get('/foo.bar', function() {
return respFromRoute;
});


when(router(mockRequest('/foo.bar')), function(resp) { when(router(mockRequest('/foo.bar')), function(resp) {
t.ok(resp); t.equal(resp, respFromRoute);
}, function() { }, function() {
t.fail('Promise should not have been rejected'); t.fail('Promise should not have been rejected');
}); });
Expand Down

0 comments on commit c5e58e8

Please sign in to comment.