diff options
Diffstat (limited to 'test/parallel/test-fs-readdir-types.js')
-rw-r--r-- | test/parallel/test-fs-readdir-types.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parallel/test-fs-readdir-types.js b/test/parallel/test-fs-readdir-types.js index 96a3b73098..78f1b0d4e1 100644 --- a/test/parallel/test-fs-readdir-types.js +++ b/test/parallel/test-fs-readdir-types.js @@ -72,13 +72,12 @@ fs.readdir(readdirDir, { assertDirents(dirents); })); -// Check the promisified version -assert.doesNotReject(async () => { +(async () => { const dirents = await fs.promises.readdir(readdirDir, { withFileTypes: true }); assertDirents(dirents); -}); +})(); // Check for correct types when the binding returns unknowns const UNKNOWN = constants.UV_DIRENT_UNKNOWN; |