Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Commit

Permalink
refactor: remove a deprecated test
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev authored May 15, 2019
1 parent f79a9d5 commit 1cbfcb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/router.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Router.add', () => {
// -------------------------------- FETCHROUTE FUNCTION -------------------------------- //

describe('Router.fetchRoute', () => {
it('should throw exception', () => {
it('should find matching route', () => {
r.routes = []; // Reset registered routes

r.add('testFetchRoute', '/test-fetch-route', () => {});
Expand All @@ -34,11 +34,11 @@ describe('Router.fetchRoute', () => {
assert.equal(r.getURI(), '/test-fetch-route');
});

it('should throw exception', () => {
/*it('should call not found callback', () => {
r.routes = []; // Reset registered routes
assert.throws(() => { r.fetchRoute('test'); }, Error, 'Route test does not exist.');
});
});*/
});

// -------------------------------- FORMATPATH FUNCTION -------------------------------- //
Expand Down

0 comments on commit 1cbfcb7

Please sign in to comment.