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:
Daniel Nalborczyk authored and Rich Trott committed 2019-06-02 16:18:39 +02:00
1 parent aa00968255
commit e0c4a9c8ed
1 file changed
+5 -2
+5 -2
View File
@@ -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')