Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix test case

  • Loading branch information...
commit c5e58e865f0232ae8686a0f31e9a2df8f7b455e8 1 parent d7939c4
@nrstott authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 test/router.test.js
View
9 test/router.test.js
@@ -270,10 +270,15 @@ test('matches paths that include encoded spaces', 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) {
- t.ok(resp);
+ t.equal(resp, respFromRoute);
}, function() {
t.fail('Promise should not have been rejected');
});
Please sign in to comment.
Something went wrong with that request. Please try again.