Skip to content

Commit aa34b45

Browse files
committed
Add test case for function node template (get keys in flow context)
1 parent c436b35 commit aa34b45

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
module.exports = function (grunt) {
22
grunt.initConfig({
33
shell: {
4+
generateNode_getKeysInFlowContext: {
5+
command: 'node bin/node-red-nodegen.js samples/get-keys-in-flow-context.js -o ./nodegen'
6+
},
47
generateNode_handleClearInterval: {
58
command: 'node bin/node-red-nodegen.js samples/handle-clearInterval.js -o ./nodegen'
69
},
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// name: get keys in flow context
2+
// outputs: 1
3+
msg.payload=flow.keys();
4+
return msg;

0 commit comments

Comments
 (0)