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 <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Masashi Hirano <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • 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.