1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/test/unit/@node-red/registry/lib/resources/local/TestNode2/TestNode2.js

10 lines
274 B
JavaScript
Raw Permalink Normal View History

2014-08-01 23:09:40 +02:00
// A test node that exports a function which returns a resolving promise
module.exports = function(RED) {
2020-11-30 15:38:48 +01:00
return new Promise(function(resolve,reject) {
2014-08-01 23:09:40 +02:00
function TestNode(n) {}
RED.nodes.registerType("test-node-2",TestNode);
resolve();
});
}