File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,17 @@ const common = require('../common');
33const  assert  =  require ( 'assert' ) ; 
44const  fs  =  require ( 'fs' ) ; 
55
6- if   ( ! common . isOSX )   common . skip ( 'MacOS-only test.' ) ; 
6+ const   filename   =   __filename . toLowerCase ( ) ; 
77
8- assert . strictEqual ( fs . realpathSync . native ( '/users' ) ,  '/Users' ) ; 
9- fs . realpath . native ( '/users' ,  common . mustCall ( function ( err ,  res )  { 
10-   assert . ifError ( err ) ; 
11-   assert . strictEqual ( res ,  '/Users' ) ; 
12-   assert . strictEqual ( this ,  undefined ) ; 
13- } ) ) ; 
8+ assert . strictEqual ( 
9+   fs . realpathSync . native ( './test/parallel/test-fs-realpath-native.js' ) 
10+     . toLowerCase ( ) , 
11+   filename ) ; 
12+ 
13+ fs . realpath . native ( 
14+   './test/parallel/test-fs-realpath-native.js' , 
15+   common . mustCall ( function ( err ,  res )  { 
16+     assert . ifError ( err ) ; 
17+     assert . strictEqual ( res . toLowerCase ( ) ,  filename ) ; 
18+     assert . strictEqual ( this ,  undefined ) ; 
19+   } ) ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments