Skip to content

Commit ef826a4

Browse files
committed
remove promisified
1 parent e2e8170 commit ef826a4

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

package-lock.json

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"json-schema-to-typescript": "^14.1.0",
3535
"lodash": "^4.17.21",
3636
"mocha": "^10.6.0",
37-
"promisified": "^0.5.0",
3837
"semver": "^7.6.2",
3938
"solc-0.6.10": "npm:solc@0.6.10",
4039
"solc-0.6.11": "npm:solc@0.6.11",

test/solc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fs = require('promisified/fs');
1+
const fs = require('fs/promises');
22
const path = require('path');
33
const semver = require('semver');
44
const lodash = require('lodash');

test/solidity-submodule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fs = require('promisified/fs');
1+
const fs = require('fs');
22
const path = require('path');
33

44
const { assertValid } = require('./helpers/assert-valid');
@@ -11,7 +11,7 @@ describe('solidity submodule', function () {
1111
.filter(e => /^.*(?<!_legacy|_parseOnly)\.json$/.test(e));
1212

1313
before('read inputs', async function () {
14-
const contents = await Promise.all(inputs.map(f => fs.readFile(path.resolve(dir, f), 'utf8')));
14+
const contents = await Promise.all(inputs.map(f => fs.promises.readFile(path.resolve(dir, f), 'utf8')));
1515
this.inputContents = {};
1616
for (const [i, content] of contents.entries()) {
1717
this.inputContents[inputs[i]] = content;

test/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fs = require('promisified/fs');
1+
const fs = require('fs/promises');
22
const path = require('path');
33
const assert = require('assert');
44
const fc = require('fast-check');

0 commit comments

Comments
 (0)