Files
node-red/test/red/runtime/nodes/resources/local/TestNode3/TestNode3.js
2016-01-06 17:01:11 +00:00

9 lines
220 B
JavaScript

// A test node that exports a function which returns a rejecting promise
var when = require("when");
module.exports = function(RED) {
return when.promise(function(resolve,reject) {
reject("fail");
});
}