mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
10 lines
274 B
JavaScript
10 lines
274 B
JavaScript
// A test node that exports a function which returns a resolving promise
|
|
|
|
module.exports = function(RED) {
|
|
return new Promise(function(resolve,reject) {
|
|
function TestNode(n) {}
|
|
RED.nodes.registerType("test-node-2",TestNode);
|
|
resolve();
|
|
});
|
|
}
|