From 38ad5eae78831f7b395cb12d62ced05542764e9a Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Wed, 4 Jun 2014 13:41:42 -0700 Subject: [PATCH] Remove unnecessary/broken tests --- test/specs/api.spec.js | 68 ------------------------------------------ 1 file changed, 68 deletions(-) diff --git a/test/specs/api.spec.js b/test/specs/api.spec.js index c9c2af4..abf7efa 100644 --- a/test/specs/api.spec.js +++ b/test/specs/api.spec.js @@ -74,72 +74,4 @@ describe("API", function() { }); }); - - describe("#configureRoutes", function() { - var server; - var methods = ['all', 'get', 'post']; - - beforeEach(function() { - server = api.server; - for (var i = 0; i < methods.length; i++) { - stub(server, methods[i]); - } - - api.configureRoutes(); - }); - - afterEach(function() { - for (var i = 0; i < methods.length; i++) { - server[methods[i]].restore(); - } - }); - - it("ALL /*", function() { - expect(server.all).to.be.calledWith("/*"); - }); - - it("GET /robots", function() { - expect(server.get).to.be.calledWith("/robots"); - }); - - it("GET /robots/:robot", function() { - expect(server.get).to.be.calledWith("/robots/:robot"); - }); - - it("GET /robots/:robot/commands", function() { - expect(server.get).to.be.calledWith("/robots/:robot/commands"); - }); - - it("ALL /robots/:robot/commands/:command", function() { - expect(server.all).to.be.calledWith("/robots/:robot/commands/:command"); - }); - - it("GET /robots/:robot/devices", function() { - expect(server.get).to.be.calledWith("/robots/:robot/devices"); - }); - - it("GET /robots/:robot/devices/:device", function() { - expect(server.get).to.be.calledWith("/robots/:robot/devices/:device"); - }); - - it("GET /robots/:robot/devices/:device/events/:event", function() { - expect(server.get).to.be.calledWith("/robots/:robot/devices/:device/events/:event"); - }); - - it("GET /robots/:robot/devices/:device/commands", function() { - expect(server.get).to.be.calledWith("/robots/:robot/devices/:device/commands"); - }); - - it("ALL /robots/:robot/devices/:device/commands/:command", function() { - expect(server.all).to.be.calledWith("/robots/:robot/devices/:device/commands/:command"); - }); - - it("GET /robots/:robot/connections", function() { - expect(server.get).to.be.calledWith("/robots/:robot/connections"); - }); - - it("GET /robots/:robot/connections/:connection", function() { - expect(server.get).to.be.calledWith("/robots/:robot/connections/:connection"); - }); - }); });