From 27c454722c1ab686fa6b8aae085f94318309495a Mon Sep 17 00:00:00 2001 From: RedYetiDev <38299977+RedYetiDev@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:23:59 -0400 Subject: [PATCH] fixup! fixup! add comment --- test/parallel/test-fs-glob.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-fs-glob.mjs b/test/parallel/test-fs-glob.mjs index 1e68dbf119e1b4..2321ceb87b8ba1 100644 --- a/test/parallel/test-fs-glob.mjs +++ b/test/parallel/test-fs-glob.mjs @@ -353,7 +353,7 @@ describe('glob - withFileTypes', function() { exclude: (dirent) => assert.ok(dirent instanceof Dirent), }); assertDirents(actual); - assert.deepStrictEqual(actual.map(normalizeDirent).sort(), expected.map(normalizePath).sort()); + assert.deepStrictEqual(actual.map(normalizeDirent).sort(), expected.filter(Boolean).map(normalizePath).sort()); }); } }); @@ -367,7 +367,7 @@ describe('globSync - withFileTypes', function() { exclude: (dirent) => assert.ok(dirent instanceof Dirent), }); assertDirents(actual); - assert.deepStrictEqual(actual.map(normalizeDirent).sort(), expected.map(normalizePath).sort()); + assert.deepStrictEqual(actual.map(normalizeDirent).sort(), expected.filter(Boolean).map(normalizePath).sort()); }); } }); @@ -382,7 +382,7 @@ describe('fsPromises glob - withFileTypes', function() { exclude: (dirent) => assert.ok(dirent instanceof Dirent), })) actual.push(item); assertDirents(actual); - assert.deepStrictEqual(actual.map(normalizeDirent).sort(), expected.map(normalizePath).sort()); + assert.deepStrictEqual(actual.map(normalizeDirent).sort(), expected.filter(Boolean).map(normalizePath).sort()); }); } });