exec node: modify test

This commit is contained in:
Nathanaël Lécaudé 2021-06-16 17:09:21 -04:00
parent 91ab3bd972
commit 2f0631809d
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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();
});
});