File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ describe('+ copySync() / dir', () => {
182182 it ( 'should apply filter when it is applied only to dest' , done => {
183183 const timeCond = new Date ( ) . getTime ( )
184184
185- const filter = ( s , d ) => fs . statSync ( d ) . birthtime . getTime ( ) < timeCond
185+ const filter = ( s , d ) => fs . statSync ( d ) . mtime . getTime ( ) < timeCond
186186
187187 const dest = path . join ( TEST_DIR , 'dest' )
188188
@@ -197,7 +197,7 @@ describe('+ copySync() / dir', () => {
197197
198198 it ( 'should apply filter when it is applied to both src and dest' , done => {
199199 const timeCond = new Date ( ) . getTime ( )
200- const filter = ( s , d ) => s . split ( '.' ) . pop ( ) !== 'css' && fs . statSync ( path . dirname ( d ) ) . birthtime . getTime ( ) > timeCond
200+ const filter = ( s , d ) => s . split ( '.' ) . pop ( ) !== 'css' && fs . statSync ( path . dirname ( d ) ) . mtime . getTime ( ) > timeCond
201201
202202 const dest = path . join ( TEST_DIR , 'dest' )
203203
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ describe('fs-extra', () => {
366366 it ( 'should apply filter when it is applied only to dest' , done => {
367367 const timeCond = new Date ( ) . getTime ( )
368368
369- const filter = ( s , d ) => fs . statSync ( d ) . birthtime . getTime ( ) < timeCond
369+ const filter = ( s , d ) => fs . statSync ( d ) . mtime . getTime ( ) < timeCond
370370
371371 const src = path . join ( TEST_DIR , 'src' )
372372 fse . mkdirsSync ( src )
@@ -388,7 +388,7 @@ describe('fs-extra', () => {
388388
389389 it ( 'should apply filter when it is applied to both src and dest' , done => {
390390 const timeCond = new Date ( ) . getTime ( )
391- const filter = ( s , d ) => s . split ( '.' ) . pop ( ) !== 'css' && fs . statSync ( path . dirname ( d ) ) . birthtime . getTime ( ) > timeCond
391+ const filter = ( s , d ) => s . split ( '.' ) . pop ( ) !== 'css' && fs . statSync ( path . dirname ( d ) ) . mtime . getTime ( ) > timeCond
392392
393393 const dest = path . join ( TEST_DIR , 'dest' )
394394 setTimeout ( ( ) => {
You can’t perform that action at this time.
0 commit comments