@@ -97,7 +97,7 @@ describe('fse-ensure-symlink', () => {
9797 return done ( )
9898 }
9999 args . push ( callback )
100- return fn . apply ( null , args )
100+ return fn ( ... args )
101101 } )
102102 }
103103
@@ -117,7 +117,7 @@ describe('fse-ensure-symlink', () => {
117117 return done ( )
118118 }
119119 args . push ( callback )
120- return fn . apply ( null , args )
120+ return fn ( ... args )
121121 } )
122122 }
123123
@@ -134,7 +134,7 @@ describe('fse-ensure-symlink', () => {
134134 return done ( )
135135 }
136136 args . push ( callback )
137- return fn . apply ( null , args )
137+ return fn ( ... args )
138138 } )
139139 }
140140
@@ -150,7 +150,7 @@ describe('fse-ensure-symlink', () => {
150150 return done ( )
151151 }
152152 args . push ( callback )
153- return fn . apply ( null , args )
153+ return fn ( ... args )
154154 } )
155155 }
156156
@@ -173,7 +173,7 @@ describe('fse-ensure-symlink', () => {
173173 return done ( )
174174 }
175175 args . push ( callback )
176- return fn . apply ( null , args )
176+ return fn ( ... args )
177177 } )
178178 }
179179
@@ -193,7 +193,7 @@ describe('fse-ensure-symlink', () => {
193193 return done ( )
194194 }
195195 args . push ( callback )
196- return fn . apply ( null , args )
196+ return fn ( ... args )
197197 } )
198198 }
199199
@@ -210,7 +210,7 @@ describe('fse-ensure-symlink', () => {
210210 return done ( )
211211 }
212212 args . push ( callback )
213- return fn . apply ( null , args )
213+ return fn ( ... args )
214214 } )
215215 }
216216
@@ -226,15 +226,15 @@ describe('fse-ensure-symlink', () => {
226226 return done ( )
227227 }
228228 args . push ( callback )
229- return fn . apply ( null , args )
229+ return fn ( ... args )
230230 } )
231231 }
232232
233233 function fileSuccessSync ( args , fn ) {
234234 const srcpath = args [ 0 ]
235235 const dstpath = args [ 1 ]
236236 it ( `should create symlink file using src ${ srcpath } and dst ${ dstpath } ` , ( ) => {
237- fn . apply ( null , args )
237+ fn ( ... args )
238238 const relative = symlinkPathsSync ( srcpath , dstpath )
239239 const srcContent = fs . readFileSync ( relative . toCwd , 'utf8' )
240240 const dstDir = path . dirname ( dstpath )
@@ -252,7 +252,7 @@ describe('fse-ensure-symlink', () => {
252252 const srcpath = args [ 0 ]
253253 const dstpath = args [ 1 ]
254254 it ( `should create broken symlink file using src ${ srcpath } and dst ${ dstpath } ` , ( ) => {
255- fn . apply ( null , args )
255+ fn ( ... args )
256256 const dstDir = path . dirname ( dstpath )
257257 const dstBasename = path . basename ( dstpath )
258258 const isSymlink = fs . lstatSync ( dstpath ) . isSymbolicLink ( )
@@ -270,7 +270,7 @@ describe('fse-ensure-symlink', () => {
270270 const dstdirExistsBefore = fs . existsSync ( path . dirname ( dstpath ) )
271271 let err = null
272272 try {
273- fn . apply ( null , args )
273+ fn ( ... args )
274274 } catch ( e ) {
275275 err = e
276276 }
@@ -285,7 +285,7 @@ describe('fse-ensure-symlink', () => {
285285 const dstpath = args [ 1 ]
286286 it ( `should do nothing using src ${ srcpath } and dst ${ dstpath } ` , ( ) => {
287287 const destinationContentBefore = fs . readFileSync ( dstpath , 'utf8' )
288- fn . apply ( null , args )
288+ fn ( ... args )
289289 const destinationContentAfter = fs . readFileSync ( dstpath , 'utf8' )
290290 assert . equal ( destinationContentBefore , destinationContentAfter )
291291 } )
@@ -295,7 +295,7 @@ describe('fse-ensure-symlink', () => {
295295 const srcpath = args [ 0 ]
296296 const dstpath = args [ 1 ]
297297 it ( `should create symlink dir using src ${ srcpath } and dst ${ dstpath } ` , ( ) => {
298- fn . apply ( null , args )
298+ fn ( ... args )
299299 const relative = symlinkPathsSync ( srcpath , dstpath )
300300 const srcContents = fs . readdirSync ( relative . toCwd )
301301 const dstDir = path . dirname ( dstpath )
@@ -313,7 +313,7 @@ describe('fse-ensure-symlink', () => {
313313 const srcpath = args [ 0 ]
314314 const dstpath = args [ 1 ]
315315 it ( `should create broken symlink dir using src ${ srcpath } and dst ${ dstpath } ` , ( ) => {
316- fn . apply ( null , args )
316+ fn ( ... args )
317317 const dstDir = path . dirname ( dstpath )
318318 const dstBasename = path . basename ( dstpath )
319319 const isSymlink = fs . lstatSync ( dstpath ) . isSymbolicLink ( )
@@ -331,7 +331,7 @@ describe('fse-ensure-symlink', () => {
331331 const dstdirExistsBefore = fs . existsSync ( path . dirname ( dstpath ) )
332332 let err = null
333333 try {
334- fn . apply ( null , args )
334+ fn ( ... args )
335335 } catch ( e ) {
336336 err = e
337337 }
@@ -346,7 +346,7 @@ describe('fse-ensure-symlink', () => {
346346 const dstpath = args [ 1 ]
347347 it ( `should do nothing using src ${ srcpath } and dst ${ dstpath } ` , ( ) => {
348348 const destinationContentBefore = fs . readdirSync ( dstpath )
349- fn . apply ( null , args )
349+ fn ( ... args )
350350 const destinationContentAfter = fs . readdirSync ( dstpath )
351351 assert . deepEqual ( destinationContentBefore , destinationContentAfter )
352352 } )
0 commit comments