var chai = require('chai');
var listEndpoints = require('../index');
var express = require('express');
var assert = chai.assert;
var expect = chai.expect;
var should = chai.should();

var router1 = express.Router()

router1.route('/')
  .get(function(req, res) {
    res.end();
  });

describe('express-list-endpoints', function () {
  describe('when called over router1', function () {
    var endpoints = listEndpoints(router1.stack);

    it('should retrieve an array', function () {
      endpoints.should.not.be.empty;
      endpoints.should.be.an('array');
      endpoints.to.have.length(1);

      it('of objects', function () {
        endpoints.each(function (endpoint) {
          endpoint.should.not.be.empty;
          endpoint.should.be.an('object');
        });
      });

      it('with the router endpoints', function () {
        endpoints.each(function (endpoint) {
          endpoint.path.should.not.be.empty;
          endpoint.path.should.be.a('string');

          it('cointaining the slashs', function () {
            endpoint.path.should.contains('/');
          });
        });
      });
    });
  });
});

@@ -356,23 +356,24 @@
 ed over 
+a 
 router
-1
 ', funct
@@ -436,18 +436,24 @@
 );%0A%0A    
-it
+describe
 ('should
@@ -583,10 +583,14 @@
 nts.
-to
+should
 .hav
@@ -650,33 +650,36 @@
       endpoints.
-e
+forE
 ach(function (en
@@ -800,18 +800,24 @@
 %0A%0A      
-it
+describe
 ('with t
@@ -870,17 +870,20 @@
 dpoints.
-e
+forE
 ach(func

Fix tests