Skip to content

Commit

Permalink
Legacy fs promises usage
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Feb 14, 2023
1 parent 5e4c97a commit 85d855c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const Fs = require('fs');
const Fsp = require('fs/promises');
const Http = require('http');
const Path = require('path');
const Stream = require('stream');
Expand Down Expand Up @@ -1001,7 +1000,7 @@ describe('parse()', () => {

await Hoek.wait(15); // Allow time for cleanup to occur
for (const file of files) {
await expect(Fsp.readFile(file)).to.reject(/ENOENT/);
await expect(Fs.promises.readFile(file)).to.reject(/ENOENT/);
}
});

Expand Down

0 comments on commit 85d855c

Please sign in to comment.