mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add flag to disable build check for tests
This commit is contained in:
@@ -86,7 +86,7 @@ module.exports = {
|
||||
available: function() { return false; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
var red = {};
|
||||
for (var i in RED) {
|
||||
if (RED.hasOwnProperty(i) && !/^(init|start|stop)$/.test(i)) {
|
||||
@@ -94,11 +94,11 @@ module.exports = {
|
||||
Object.defineProperty(red,i,propDescriptor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
red["_"] = function(messageId) {
|
||||
return messageId;
|
||||
};
|
||||
|
||||
|
||||
redNodes.init(settings, storage);
|
||||
credentials.init(storage,express());
|
||||
RED.nodes.registerType("helper", helperNode);
|
||||
@@ -138,6 +138,7 @@ module.exports = {
|
||||
startServer: function(done) {
|
||||
server = http.createServer(function(req,res){app(req,res);});
|
||||
RED.init(server, {
|
||||
SKIP_BUILD_CHECK: true,
|
||||
logging:{console:{level:'off'}}
|
||||
});
|
||||
server.listen(listenPort, address);
|
||||
|
Reference in New Issue
Block a user