// A test node that exports a function which returns a resolving promisevarwhen=require("when");module.exports=function(RED){returnwhen.promise(function(resolve,reject){functionTestNode(n){}RED.nodes.registerType("test-node-2",TestNode);resolve();});}