File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ describe('glob - withFileTypes', function() {
353353 exclude : ( dirent ) => assert . ok ( dirent instanceof Dirent ) ,
354354 } ) ;
355355 assertDirents ( actual ) ;
356- assert . deepStrictEqual ( actual . map ( normalizeDirent ) . sort ( ) , expected . map ( normalizePath ) . sort ( ) ) ;
356+ assert . deepStrictEqual ( actual . map ( normalizeDirent ) . sort ( ) , expected . filter ( Boolean ) . map ( normalizePath ) . sort ( ) ) ;
357357 } ) ;
358358 }
359359} ) ;
@@ -367,7 +367,7 @@ describe('globSync - withFileTypes', function() {
367367 exclude : ( dirent ) => assert . ok ( dirent instanceof Dirent ) ,
368368 } ) ;
369369 assertDirents ( actual ) ;
370- assert . deepStrictEqual ( actual . map ( normalizeDirent ) . sort ( ) , expected . map ( normalizePath ) . sort ( ) ) ;
370+ assert . deepStrictEqual ( actual . map ( normalizeDirent ) . sort ( ) , expected . filter ( Boolean ) . map ( normalizePath ) . sort ( ) ) ;
371371 } ) ;
372372 }
373373} ) ;
@@ -382,7 +382,7 @@ describe('fsPromises glob - withFileTypes', function() {
382382 exclude : ( dirent ) => assert . ok ( dirent instanceof Dirent ) ,
383383 } ) ) actual . push ( item ) ;
384384 assertDirents ( actual ) ;
385- assert . deepStrictEqual ( actual . map ( normalizeDirent ) . sort ( ) , expected . map ( normalizePath ) . sort ( ) ) ;
385+ assert . deepStrictEqual ( actual . map ( normalizeDirent ) . sort ( ) , expected . filter ( Boolean ) . map ( normalizePath ) . sort ( ) ) ;
386386 } ) ;
387387 }
388388} ) ;
You can’t perform that action at this time.
0 commit comments