node-red
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<script type="text/x-red" data-template-name="test-node-3"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-3"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-3',{});</script>
|
||||
@@ -0,0 +1,7 @@
|
||||
// A test node that exports a function which returns a rejecting promise
|
||||
|
||||
module.exports = function(RED) {
|
||||
return new Promise(function(resolve,reject) {
|
||||
reject("fail");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user