Remove unnecessary/broken tests

This commit is contained in:
Andrew Stewart 2014-06-04 13:41:42 -07:00
parent ac0a69e63f
commit 38ad5eae78
1 changed files with 0 additions and 68 deletions

View File

@ -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");
});
});
});