mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add error handling to exec test
This commit is contained in:
parent
97df964051
commit
c8a0d3c10d
@ -37,16 +37,20 @@ describe('exec node', function() {
|
||||
it('should be loaded with any defaults', function(done) {
|
||||
var flow = [{id:"n1", type:"exec", name: "exec1"}];
|
||||
helper.load(execNode, flow, function() {
|
||||
var n1 = helper.getNode("n1");
|
||||
n1.should.have.property("name", "exec1");
|
||||
n1.should.have.property("cmd", "");
|
||||
n1.should.have.property("append", "");
|
||||
n1.should.have.property("addpay","payload");
|
||||
n1.should.have.property("timer",0);
|
||||
n1.should.have.property("oldrc","false");
|
||||
n1.should.have.property("execOpt", {encoding:'binary', maxBuffer:10000000, windowsHide: false});
|
||||
n1.should.have.property("spawnOpt", {windowsHide:false});
|
||||
done();
|
||||
try {
|
||||
var n1 = helper.getNode("n1");
|
||||
n1.should.have.property("name", "exec1");
|
||||
n1.should.have.property("cmd", "");
|
||||
n1.should.have.property("append", "");
|
||||
n1.should.have.property("addpay","payload");
|
||||
n1.should.have.property("timer",0);
|
||||
n1.should.have.property("oldrc","false");
|
||||
n1.should.have.property("execOpt", {encoding:'binary', maxBuffer:10000000, windowsHide: false});
|
||||
n1.should.have.property("spawnOpt", {windowsHide:false});
|
||||
done();
|
||||
} catch(err) {
|
||||
done(err);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user