You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/exec.test.js
+18-18
Original file line number
Diff line number
Diff line change
@@ -266,11 +266,11 @@ describe('Machine.prototype.exec()', function (){
266
266
try{
267
267
_origMachineInstance.exec(function(err){
268
268
if(err){
269
-
if(err.code==='E_MACHINE_RUNTIME_VALIDATION'){
270
-
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_MACHINE_RUNTIME_VALIDATION` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
269
+
if(err.code==='E_INVALID_ARGINS'){
270
+
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_INVALID_ARGINS` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
271
271
else{returndone();}
272
272
}
273
-
else{returndone(newError('Error should have had `code: \'E_MACHINE_RUNTIME_VALIDATION\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
273
+
else{returndone(newError('Error should have had `code: \'E_INVALID_ARGINS\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
274
274
}
275
275
else{returndone(newError('There should have been a validation error provided to this callback!'));}
276
276
});
@@ -292,11 +292,11 @@ describe('Machine.prototype.exec()', function (){
292
292
_origMachineInstance.exec({
293
293
error: function(err){
294
294
if(err){
295
-
if(err.code==='E_MACHINE_RUNTIME_VALIDATION'){
296
-
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_MACHINE_RUNTIME_VALIDATION` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
295
+
if(err.code==='E_INVALID_ARGINS'){
296
+
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_INVALID_ARGINS` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
297
297
else{returndone();}
298
298
}
299
-
else{returndone(newError('Error should have had `code: \'E_MACHINE_RUNTIME_VALIDATION\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
299
+
else{returndone(newError('Error should have had `code: \'E_INVALID_ARGINS\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
300
300
}
301
301
else{returndone(newError('There should have been a validation error provided to this callback!'));}
302
302
},
@@ -400,11 +400,11 @@ describe('Machine.prototype.exec()', function (){
400
400
try{
401
401
_origMachineInstance.exec(function(err){
402
402
if(err){
403
-
if(err.code==='E_MACHINE_RUNTIME_VALIDATION'){
404
-
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_MACHINE_RUNTIME_VALIDATION` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
403
+
if(err.code==='E_INVALID_ARGINS'){
404
+
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_INVALID_ARGINS` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
405
405
else{returndone();}
406
406
}
407
-
else{returndone(newError('Error should have had `code: \'E_MACHINE_RUNTIME_VALIDATION\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
407
+
else{returndone(newError('Error should have had `code: \'E_INVALID_ARGINS\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
408
408
}
409
409
else{returndone(newError('There should have been a validation error provided to this callback!'));}
410
410
});
@@ -426,11 +426,11 @@ describe('Machine.prototype.exec()', function (){
426
426
_origMachineInstance.exec({
427
427
error: function(err){
428
428
if(err){
429
-
if(err.code==='E_MACHINE_RUNTIME_VALIDATION'){
430
-
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_MACHINE_RUNTIME_VALIDATION` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
429
+
if(err.code==='E_INVALID_ARGINS'){
430
+
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_INVALID_ARGINS` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
431
431
else{returndone();}
432
432
}
433
-
else{returndone(newError('Error should have had `code: \'E_MACHINE_RUNTIME_VALIDATION\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
433
+
else{returndone(newError('Error should have had `code: \'E_INVALID_ARGINS\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
434
434
}
435
435
else{returndone(newError('There should have been a validation error provided to this callback!'));}
436
436
},
@@ -561,11 +561,11 @@ describe('Machine.prototype.exec()', function (){
561
561
try{
562
562
_origMachineInstance.exec(function(err){
563
563
if(err){
564
-
if(err.code==='E_MACHINE_RUNTIME_VALIDATION'){
565
-
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_MACHINE_RUNTIME_VALIDATION` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
564
+
if(err.code==='E_INVALID_ARGINS'){
565
+
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_INVALID_ARGINS` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
566
566
else{returndone();}
567
567
}
568
-
else{returndone(newError('Error should have had `code: \'E_MACHINE_RUNTIME_VALIDATION\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
568
+
else{returndone(newError('Error should have had `code: \'E_INVALID_ARGINS\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
569
569
}
570
570
else{returndone(newError('There should have been a validation error provided to this callback!'));}
571
571
});
@@ -616,11 +616,11 @@ describe('Machine.prototype.exec()', function (){
616
616
try{
617
617
_origMachineInstance.exec(function(err){
618
618
if(err){
619
-
if(err.code==='E_MACHINE_RUNTIME_VALIDATION'){
620
-
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_MACHINE_RUNTIME_VALIDATION` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
619
+
if(err.code==='E_INVALID_ARGINS'){
620
+
if(err.machineInstance!==_origMachineInstance){returndone(newError('The `E_INVALID_ARGINS` error should have had a `machineInstance` property which is the same reference as the original machine instance-- but instead, got: '+util.inspect(err.machineInstance,{depth: null})));}
621
621
else{returndone();}
622
622
}
623
-
else{returndone(newError('Error should have had `code: \'E_MACHINE_RUNTIME_VALIDATION\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
623
+
else{returndone(newError('Error should have had `code: \'E_INVALID_ARGINS\', but instead, got: `'+err.code+'`. Here is the stack:'+err.stack));}
624
624
}
625
625
else{returndone(newError('There should have been a validation error provided to this callback!'));}
0 commit comments