Skip to content

Commit

Permalink
ensure that there is no uncaught failure condition in router test for…
Browse files Browse the repository at this point in the history
… matching "/" when no route found for ""
  • Loading branch information
nrstott committed Feb 1, 2013
1 parent f425c90 commit 22376e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/router.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ test('matches empty `pathInfo` to "/" if no route is defined for ""', function(t

when(router(mockRequest('')), function(resp) {
t.equal(resp.body.join(''), 'success', 'Should have matched "/" route');
}, function(err) {
t.fail(err);
});

t.plan(1);
Expand Down

0 comments on commit 22376e6

Please sign in to comment.