UNPKG
cloud-red
Version:
latest (0.7.38)
0.7.38
0.7.37
0.7.36
0.7.35
0.7.34
0.7.33
0.7.32
0.7.31
0.7.30
0.7.29
0.7.28
0.7.27
0.7.26
0.7.25
0.7.24
0.7.23
0.7.21
0.7.20
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.7
0.6.6
0.6.5
0.6.2
0.6.0
0.5.22
0.5.21
0.5.20
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.2
0.5.1
0.5.0
Serverless Node-RED for your cloud integration needs
cloud-red
/
test
/
unit
/
@node-red
/
registry
/
lib
/
resources
/
local
/
TestNode3
/
TestNode3.js
9 lines
(7 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// 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"
); }); }