mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge branch '0.15.0'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2014 IBM Corp.
|
||||
* Copyright 2014, 2016 IBM Corp.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -72,18 +72,8 @@ module.exports = {
|
||||
|
||||
var storage = {
|
||||
getFlows: function() {
|
||||
var defer = when.defer();
|
||||
defer.resolve(testFlows);
|
||||
return defer.promise;
|
||||
},
|
||||
getCredentials: function() {
|
||||
var defer = when.defer();
|
||||
defer.resolve(testCredentials);
|
||||
return defer.promise;
|
||||
},
|
||||
saveCredentials: function() {
|
||||
// do nothing
|
||||
},
|
||||
return when.resolve({flows:testFlows,credentials:testCredentials});
|
||||
}
|
||||
};
|
||||
|
||||
var settings = {
|
||||
@@ -102,8 +92,7 @@ module.exports = {
|
||||
return messageId;
|
||||
};
|
||||
|
||||
redNodes.init({settings:settings, storage:storage});
|
||||
credentials.init(storage,express());
|
||||
redNodes.init({settings:settings, storage:storage,log:log});
|
||||
RED.nodes.registerType("helper", helperNode);
|
||||
if (Array.isArray(testNode)) {
|
||||
for (i = 0; i < testNode.length; i++) {
|
||||
@@ -114,7 +103,7 @@ module.exports = {
|
||||
}
|
||||
flows.load().then(function() {
|
||||
flows.startFlows();
|
||||
should.deepEqual(testFlows, flows.getFlows());
|
||||
should.deepEqual(testFlows, flows.getFlows().flows);
|
||||
cb();
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user