Skip to content

Commit

Permalink
fixup! fs: remove experimental warning for fs.promises
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Mar 30, 2019
1 parent 6956fa3 commit b9154d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3699,7 +3699,7 @@ this API: [`fs.write(fd, string...)`][].

## fs Promises API

> Stability: 1 - Experimental
> Stability: 2 - Stable
The `fs.promises` API provides an alternative set of asynchronous file system
methods that return `Promise` objects rather than using callbacks. The
Expand Down
5 changes: 2 additions & 3 deletions test/parallel/test-fs-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ function nextdir() {
return `test${++dirc}`;
}

// fs.promises should not be enumerable as long as it causes a warning to be
// emitted.
assert.strictEqual(Object.keys(fs).includes('promises'), false);
// fs.promises should not enumerable.
assert.strictEqual(Object.keys(fs).includes('promises'), true);

{
access(__filename, 'r')
Expand Down

0 comments on commit b9154d3

Please sign in to comment.