summaryrefslogtreecommitdiffstats
path: root/dgbuilder/test/red/nodes/resources/TestNode2/TestNode2.js
blob: faf61a8f328d6d416a1d866fd16917e13cb8a085 (plain)
1
2
3
4
5
6
7
8
9
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();
    });
}