mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Move away from __defineGetter syntax, in red and server
Bump test coverage forwards a bit
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user