From 1cbfcb744e619c7056fc3f2ae8fc028f8f9bb63a Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 15 May 2019 15:08:24 +0200 Subject: [PATCH] refactor: remove a deprecated test --- test/router.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/router.spec.ts b/test/router.spec.ts index a89f25a..d5d3777 100644 --- a/test/router.spec.ts +++ b/test/router.spec.ts @@ -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', () => {}); @@ -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 -------------------------------- //