Skip to content

Commit

Permalink
fs: re-export constants from fs/promises
Browse files Browse the repository at this point in the history
  • Loading branch information
F3n67u committed May 22, 2022
1 parent 40162db commit 7a98b0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fs/promises.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = require('internal/fs/promises').exports;
const dnsPromises = require('internal/fs/promises').exports;
dnsPromises.constants = require('fs').constants;
module.exports = dnsPromises;
1 change: 1 addition & 0 deletions test/parallel/test-fs-promises-exists.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ require('../common');
const assert = require('assert');

assert.strictEqual(require('fs/promises'), require('fs').promises);
assert.strictEqual(require('fs/promises').constants, require('fs').constants);

0 comments on commit 7a98b0b

Please sign in to comment.