Skip to content

Commit

Permalink
Updated tests for middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeel-ahmad committed Oct 30, 2014
1 parent 4ef0ac9 commit ce14e6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ var baseURL = "http://localhost:5000";

before(function (done) {

app.use('/v1', function() {});
// Add sample routes and start express app
app.get("/route1", function() {});

app.get("/v1/route2", function() {});

app.listen(5000, done);
});

Expand Down Expand Up @@ -51,7 +54,7 @@ describe("docs", function () {
if (err) return done(err);

res.body.should.have.property("routes");
res.body.routes.should.be.an.instanceOf(Array).with.length(1);
res.body.routes.should.be.an.instanceOf(Array).with.length(2);
res.body.routes[0][1][0].should.have.properties(["method", "path"]);

done();
Expand Down

0 comments on commit ce14e6a

Please sign in to comment.