From 2f0631809d40d887132eb62a2f3cfea309ec35c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Wed, 16 Jun 2021 17:09:21 -0400 Subject: [PATCH] exec node: modify test --- packages/node_modules/@node-red/nodes/core/function/90-exec.js | 2 +- test/nodes/core/function/90-exec_spec.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/function/90-exec.js b/packages/node_modules/@node-red/nodes/core/function/90-exec.js index 7b51d3305..8d5fdf296 100644 --- a/packages/node_modules/@node-red/nodes/core/function/90-exec.js +++ b/packages/node_modules/@node-red/nodes/core/function/90-exec.js @@ -87,7 +87,7 @@ module.exports = function(RED) { var cmd = arg.shift(); /* istanbul ignore else */ if (RED.settings.verbose) { node.log(cmd+" ["+arg+"]"); } - child = spawn(cmd,arg); + child = spawn(cmd,arg,node.spawnOpt); node.status({fill:"blue",shape:"dot",text:"pid:"+child.pid}); var unknownCommand = (child.pid === undefined); if (node.timer !== 0) { diff --git a/test/nodes/core/function/90-exec_spec.js b/test/nodes/core/function/90-exec_spec.js index b21409c23..4b0eaff2d 100644 --- a/test/nodes/core/function/90-exec_spec.js +++ b/test/nodes/core/function/90-exec_spec.js @@ -44,6 +44,7 @@ describe('exec node', function() { n1.should.have.property("addpay","payload"); n1.should.have.property("timer",0); n1.should.have.property("oldrc","false"); + n1.should.have.property("windowsHide",false); done(); }); });