mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #449 from hbeeken/update-test-helper
Adding capability to the test helper to load more than one node at once
This commit is contained in:
commit
da73972c41
@ -77,7 +77,13 @@ module.exports = {
|
|||||||
redNodes.init(settings, storage);
|
redNodes.init(settings, storage);
|
||||||
credentials.init(storage);
|
credentials.init(storage);
|
||||||
RED.nodes.registerType("helper", helperNode);
|
RED.nodes.registerType("helper", helperNode);
|
||||||
testNode(RED);
|
if (Array.isArray(testNode)) {
|
||||||
|
for (var i = 0; i < testNode.length; i++) {
|
||||||
|
testNode[i](RED);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
testNode(RED);
|
||||||
|
}
|
||||||
flows.load().then(function() {
|
flows.load().then(function() {
|
||||||
should.deepEqual(testFlows, flows.getFlows());
|
should.deepEqual(testFlows, flows.getFlows());
|
||||||
cb();
|
cb();
|
||||||
|
Loading…
Reference in New Issue
Block a user