const Router = require('../dist/commonjs/router.js').Router;

const assert = require('assert');

describe('Router', () => {
  describe('#constructor()', () => {
    it('should return a Router object (no routes)', () => {
      assert.ok(new Router() instanceof Router);
    });
    it('should return a Router object (one route)', () => {
      assert.ok(new Router({ "foo": "bar" }) instanceof Router);
    })
  });
  describe('#match()', () => {
    it('should return no matches (no routes)', () => {
      const r = new Router();
      assert.deepEqual(r.match(), []);
    });
    it('should return no matches (one route)', () => {
      const r = new Router({ "foo": "bar" });
      assert.deepEqual(r.match(), []);
    });
  });
});

@@ -193,25 +193,33 @@
 object (
-no routes
+empty constructor
 )', () =
@@ -271,32 +271,151 @@
 outer);%0A    %7D);%0A
+    it('should return a Router object (no routes)', () =%3E %7B%0A      assert.ok(new Router(%7B%7D) instanceof Router);%0A    %7D);%0A
     it('should r
@@ -529,16 +529,17 @@
 ;%0A    %7D)
+;
 %0A  %7D);%0A 
@@ -602,25 +602,41 @@
 atches (
-no routes
+empty constructor, no URL
 )', () =
@@ -708,32 +708,174 @@
 ), %5B%5D);%0A    %7D);%0A
+    it('should return no matches (no routes, no URL)', () =%3E %7B%0A      const r = new Router(%7B%7D);%0A      assert.deepEqual(r.match(), %5B%5D);%0A    %7D);%0A
     it('should r
@@ -893,32 +893,40 @@
 tches (one route
+, no URL
 )', () =%3E %7B%0A    
@@ -1010,22 +1010,542 @@
 %5D);%0A    %7D);%0A
+    it('should return no matches (no routes, URL)', () =%3E %7B%0A      const r = new Router();%0A      assert.deepEqual(r.match(%22qqq%22), %5B%5D);%0A    %7D);%0A    it('should return no matches (one route, URL)', () =%3E %7B%0A      const r = new Router(%7B %22foo%22: %22bar%22 %7D);%0A      assert.deepEqual(r.match(%22qqq%22), %5B%5D);%0A    %7D);%0A    it('should return one match (one route, URL)', () =%3E %7B%0A      const r = new Router(%7B %22foo%22: %22bar%22 %7D);%0A      assert.deepEqual(%0A        r.match(%22foo%22),%0A        %5B%5B%22bar%22, %22foo%22.match(new RegExp(%22foo%22))%5D%5D%0A      );%0A    %7D);%0A
   %7D);%0A%7D);%0A

Improve tests