Move away from __defineGetter syntax, in red and server

Bump test coverage forwards a bit
This commit is contained in:
dceejay
2015-03-06 10:17:00 +00:00
parent 3cbc1bbb1b
commit 234abd82a2
3 changed files with 46 additions and 30 deletions

View File

@@ -17,6 +17,30 @@ var should = require("should");
describe("red/red", function() {
it('can be required without errors', function() {
require("../../red/red");
var RED = require("../../red/red");
});
var RED = require("../../red/red");
it('returns an app object', function() {
var srv = RED.app.use("/test", function() { return "app"; });
srv.should.be.an.instanceOf(Object);
});
it('returns an httpAdmin object', function() {
var srv = RED.httpAdmin.use("/test", function() { return "Admin"; });
srv.should.be.an.instanceOf(Object);
});
it('reuturns an httpNode object', function() {
var srv = RED.httpNode.use("/test", function() { return "Node"; });
srv.should.be.an.instanceOf(Object);
});
it('it returns a server object', function() {
var srv = RED.server;
srv.should.be.an.instanceOf(Object).and.have.property('domain', null);
srv.should.be.an.instanceOf(Object).and.have.property('timeout', 120000);
});
});