From 798167a68e2ee97fe009e58d6895ac3bf7ffc306 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 30 Nov 2023 17:34:53 +0100 Subject: [PATCH] fixup! fs: introduce `dirent.parentPath` --- test/parallel/test-fs-opendir.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-opendir.js b/test/parallel/test-fs-opendir.js index a6585efe7ca49e..8b8fc161eee661 100644 --- a/test/parallel/test-fs-opendir.js +++ b/test/parallel/test-fs-opendir.js @@ -48,7 +48,7 @@ const invalidCallbackObj = { const entries = files.map(() => { const dirent = dir.readSync(); assertDirent(dirent); - return { name: dirent.name, path: dirent.path, dirname: dirent.parentPath, toString() { return dirent.name; } }; + return { name: dirent.name, path: dirent.path, parentPath: dirent.parentPath, toString() { return dirent.name; } }; }).sort(); assert.deepStrictEqual(entries.map((d) => d.name), files); assert.deepStrictEqual(entries.map((d) => d.path), Array(entries.length).fill(testDir));