@@ -87,7 +87,7 @@ function test_simple_relative_symlink(callback) {
8787 [
8888 [ entry , '../' + common . tmpDirName + '/cycles/root.js' ]
8989 ] . forEach ( function ( t ) {
90- try { fs . unlinkSync ( t [ 0 ] ) ; } catch ( e ) { }
90+ try { fs . unlinkSync ( t [ 0 ] ) ; } catch ( e ) { }
9191 console . log ( 'fs.symlinkSync(%j, %j, %j)' , t [ 1 ] , t [ 0 ] , 'file' ) ;
9292 fs . symlinkSync ( t [ 1 ] , t [ 0 ] , 'file' ) ;
9393 unlink . push ( t [ 0 ] ) ;
@@ -113,7 +113,7 @@ function test_simple_absolute_symlink(callback) {
113113 [
114114 [ entry , expected ]
115115 ] . forEach ( function ( t ) {
116- try { fs . unlinkSync ( t [ 0 ] ) ; } catch ( e ) { }
116+ try { fs . unlinkSync ( t [ 0 ] ) ; } catch ( e ) { }
117117 console . error ( 'fs.symlinkSync(%j, %j, %j)' , t [ 1 ] , t [ 0 ] , type ) ;
118118 fs . symlinkSync ( t [ 1 ] , t [ 0 ] , type ) ;
119119 unlink . push ( t [ 0 ] ) ;
@@ -138,13 +138,13 @@ function test_deep_relative_file_symlink(callback) {
138138 expected ) ;
139139 const linkPath1 = path . join ( targetsAbsDir ,
140140 'nested-index' , 'one' , 'symlink1.js' ) ;
141- try { fs . unlinkSync ( linkPath1 ) ; } catch ( e ) { }
141+ try { fs . unlinkSync ( linkPath1 ) ; } catch ( e ) { }
142142 fs . symlinkSync ( linkData1 , linkPath1 , 'file' ) ;
143143
144144 const linkData2 = '../one/symlink1.js' ;
145145 const entry = path . join ( targetsAbsDir ,
146146 'nested-index' , 'two' , 'symlink1-b.js' ) ;
147- try { fs . unlinkSync ( entry ) ; } catch ( e ) { }
147+ try { fs . unlinkSync ( entry ) ; } catch ( e ) { }
148148 fs . symlinkSync ( linkData2 , entry , 'file' ) ;
149149 unlink . push ( linkPath1 ) ;
150150 unlink . push ( entry ) ;
@@ -165,13 +165,13 @@ function test_deep_relative_dir_symlink(callback) {
165165 const path1b = path . join ( targetsAbsDir , 'nested-index' , 'one' ) ;
166166 const linkPath1b = path . join ( path1b , 'symlink1-dir' ) ;
167167 const linkData1b = path . relative ( path1b , expected ) ;
168- try { fs . unlinkSync ( linkPath1b ) ; } catch ( e ) { }
168+ try { fs . unlinkSync ( linkPath1b ) ; } catch ( e ) { }
169169 fs . symlinkSync ( linkData1b , linkPath1b , 'dir' ) ;
170170
171171 const linkData2b = '../one/symlink1-dir' ;
172172 const entry = path . join ( targetsAbsDir ,
173173 'nested-index' , 'two' , 'symlink12-dir' ) ;
174- try { fs . unlinkSync ( entry ) ; } catch ( e ) { }
174+ try { fs . unlinkSync ( entry ) ; } catch ( e ) { }
175175 fs . symlinkSync ( linkData2b , entry , 'dir' ) ;
176176 unlink . push ( linkPath1b ) ;
177177 unlink . push ( entry ) ;
@@ -195,7 +195,7 @@ function test_cyclic_link_protection(callback) {
195195 [ common . tmpDir + '/cycles/realpath-3b' , '../cycles/realpath-3c' ] ,
196196 [ common . tmpDir + '/cycles/realpath-3c' , '../cycles/realpath-3a' ]
197197 ] . forEach ( function ( t ) {
198- try { fs . unlinkSync ( t [ 0 ] ) ; } catch ( e ) { }
198+ try { fs . unlinkSync ( t [ 0 ] ) ; } catch ( e ) { }
199199 fs . symlinkSync ( t [ 1 ] , t [ 0 ] , 'dir' ) ;
200200 unlink . push ( t [ 0 ] ) ;
201201 } ) ;
@@ -218,7 +218,7 @@ function test_cyclic_link_overprotection(callback) {
218218 const link = folder + '/cycles' ;
219219 var testPath = cycles ;
220220 testPath += '/folder/cycles' . repeat ( 10 ) ;
221- try { fs . unlinkSync ( link ) ; } catch ( ex ) { }
221+ try { fs . unlinkSync ( link ) ; } catch ( ex ) { }
222222 fs . symlinkSync ( cycles , link , 'dir' ) ;
223223 unlink . push ( link ) ;
224224 assertEqualPath ( fs . realpathSync ( testPath ) , path . resolve ( expected ) ) ;
@@ -246,7 +246,7 @@ function test_relative_input_cwd(callback) {
246246 ] . forEach ( function ( t ) {
247247 const fn = t [ 0 ] ;
248248 console . error ( 'fn=%j' , fn ) ;
249- try { fs . unlinkSync ( fn ) ; } catch ( e ) { }
249+ try { fs . unlinkSync ( fn ) ; } catch ( e ) { }
250250 const b = path . basename ( t [ 1 ] ) ;
251251 const type = ( b === 'root.js' ? 'file' : 'dir' ) ;
252252 console . log ( 'fs.symlinkSync(%j, %j, %j)' , t [ 1 ] , fn , type ) ;
@@ -363,7 +363,7 @@ function test_up_multiple(cb) {
363363 [ 'a/b' ,
364364 'a'
365365 ] . forEach ( function ( folder ) {
366- try { fs . rmdirSync ( tmp ( folder ) ) ; } catch ( ex ) { }
366+ try { fs . rmdirSync ( tmp ( folder ) ) ; } catch ( ex ) { }
367367 } ) ;
368368 }
369369 function setup ( ) {
@@ -420,14 +420,14 @@ function test_abs_with_kids(cb) {
420420 [ '/a/b/c/x.txt' ,
421421 '/a/link'
422422 ] . forEach ( function ( file ) {
423- try { fs . unlinkSync ( root + file ) ; } catch ( ex ) { }
423+ try { fs . unlinkSync ( root + file ) ; } catch ( ex ) { }
424424 } ) ;
425425 [ '/a/b/c' ,
426426 '/a/b' ,
427427 '/a' ,
428428 ''
429429 ] . forEach ( function ( folder ) {
430- try { fs . rmdirSync ( root + folder ) ; } catch ( ex ) { }
430+ try { fs . rmdirSync ( root + folder ) ; } catch ( ex ) { }
431431 } ) ;
432432 }
433433 function setup ( ) {
0 commit comments