File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ const tmpdir = require('../common/tmpdir');
1515const  command  =  common . isWindows  ? 'cd'  : 'pwd' ; 
1616const  options  =  {  cwd : tmpdir . path  } ; 
1717
18+ tmpdir . refresh ( ) ; 
19+ 
1820if  ( common . isWindows )  { 
1921  // This test is not the case for Windows based systems 
2022  // unless the `shell` options equals to `true` 
@@ -31,12 +33,13 @@ const testCases = [
3133const  expectedResult  =  tmpdir . path . trim ( ) . toLowerCase ( ) ; 
3234
3335const  results  =  testCases . map ( ( testCase )  =>  { 
34-   const  {  stdout,  stderr }  =  spawnSync ( 
36+   const  {  stdout,  stderr,  error  }  =  spawnSync ( 
3537    command , 
3638    testCase , 
3739    options 
3840  ) ; 
3941
42+   assert . ifError ( error ) ; 
4043  assert . deepStrictEqual ( stderr ,  Buffer . alloc ( 0 ) ) ; 
4144
4245  return  stdout . toString ( ) . trim ( ) . toLowerCase ( ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments