test: simplify fs promises test
Simplify test, fix comment. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
aa00968255
commit
e0c4a9c8ed
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user