@@ -9,7 +9,7 @@ describe('createExecutionObserver', () => {
99 it ( 'should use execute process and use observer to capture stdout message and stderr will be empty' , async ( ) => {
1010 const { stdout, stderr } = await executeProcess ( {
1111 command : 'node' ,
12- args : [ '-e' , `console.log('${ message } ');` ] ,
12+ args : [ '-e' , `" console.log('${ message } ');" ` ] ,
1313 observer : createExecutionObserver ( ) ,
1414 } ) ;
1515
@@ -20,7 +20,7 @@ describe('createExecutionObserver', () => {
2020 it ( 'should use execute process and use observer to capture stdout message and stderr will be error' , async ( ) => {
2121 const { stdout, stderr } = await executeProcess ( {
2222 command : 'node' ,
23- args : [ '-e' , `console.log('${ message } '); console.error('${ error } ');` ] ,
23+ args : [ '-e' , `" console.log('${ message } '); console.error('${ error } ');" ` ] ,
2424 observer : createExecutionObserver ( ) ,
2525 } ) ;
2626
@@ -31,7 +31,7 @@ describe('createExecutionObserver', () => {
3131 it ( 'should use execute process and use observer to capture stderr error and ignore stdout message' , async ( ) => {
3232 const { stdout, stderr } = await executeProcess ( {
3333 command : 'node' ,
34- args : [ '-e' , `console.log('${ message } '); console.error('${ error } ');` ] ,
34+ args : [ '-e' , `" console.log('${ message } '); console.error('${ error } ');" ` ] ,
3535 observer : createExecutionObserver ( { silent : true } ) ,
3636 } ) ;
3737
0 commit comments