Improve node registry test coverage

This commit is contained in:
Nick O'Leary
2015-11-13 23:16:47 +00:00
parent 93f5da325b
commit 45f67191ba
28 changed files with 1065 additions and 784 deletions

View File

@@ -0,0 +1,10 @@
// A test node that exports a function which returns a resolving promise
var when = require("when");
module.exports = function(RED) {
return when.promise(function(resolve,reject) {
function TestNode(n) {}
RED.nodes.registerType("test-node-2",TestNode);
resolve();
});
}