Merge pull request #267 from hindessm/flows-tests

Flows tests
This commit is contained in:
Nick O'Leary
2014-07-15 17:03:16 +01:00
2 changed files with 122 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ var parseConfig = function() {
}
}
// console.log(nn);
if (nn == null) {
if (nn === null) {
util.log("[red] unknown type: "+activeConfig[i].type);
}
}
@@ -88,7 +88,7 @@ var parseConfig = function() {
// Clean up any orphaned credentials
credentials.clean(flowNodes.get);
events.emit("nodes-started");
}
};
function stopFlows() {
@@ -151,9 +151,6 @@ var flowNodes = module.exports = {
}
}
},
addLogHandler: function(handler) {
logHandlers.push(handler);
},
getFlows: function() {
return activeConfig;
@@ -164,7 +161,7 @@ var flowNodes = module.exports = {
activeConfig = conf;
parseConfig();
});
})
});
},
stopFlows: stopFlows
}
};