Skip to content

Commit 3d34046

Browse files
Fixed existing incorrect test
1 parent 8f8546d commit 3d34046

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/router.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ describe('Router', () => {
5656
});
5757

5858
it('throws on invalid route name', function () {
59-
assert.throws(this.router.navigate.bind(this.route, 'invalid route name'));
59+
assert.rejects(
60+
this.router.navigate.bind(this.router, 'invalid route name'),
61+
'No routes called: invalid route name',
62+
);
6063
});
6164
});
6265

0 commit comments

Comments
 (0)