aboutsummaryrefslogtreecommitdiffstats
path: root/dgbuilder/test/red/nodes/resources/TestNode3/TestNode3.js
blob: 756dc1398898c61591112ba3ff84117734dad96d (plain)
1
2
3
4
5
6
7
8
// 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");
    });
}