Skip to content

Commit

Permalink
test: simplify fs promises test
Browse files Browse the repository at this point in the history
Simplify test, fix comment.

PR-URL: #27242
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
dnalborczyk authored and targos committed Jun 3, 2019
1 parent ea2d550 commit 887dd60
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/parallel/test-fs-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ function nextdir() {
return `test${++dirc}`;
}

// fs.promises should not enumerable.
assert.strictEqual(Object.keys(fs).includes('promises'), true);
// fs.promises should be enumerable.
assert.strictEqual(
Object.prototype.propertyIsEnumerable.call(fs, 'promises'),
true
);

{
access(__filename, 'r')
Expand Down

0 comments on commit 887dd60

Please sign in to comment.