Skip to content

Commit 39b1202

Browse files
committed
Replace pify with util.promisify
Signed-off-by: Kevin Locke <[email protected]>
1 parent b0e12d5 commit 39b1202

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/global-hooks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
const fs = require('fs');
99
const path = require('path');
10-
const pify = require('pify');
1110
const rimraf = require('rimraf');
11+
const util = require('util');
1212

1313
const git = require('../test-lib/git');
1414
const constants = require('../test-lib/constants');
1515

16-
const fsP = pify(fs);
17-
const rimrafP = pify(rimraf);
16+
const mkdirP = util.promisify(fs.mkdir);
17+
const rimrafP = util.promisify(rimraf);
1818

1919
// Local copy of shared constants
2020
const {
@@ -50,7 +50,7 @@ before('setup test repository', function() {
5050
))
5151
.then(() => git('-C', TEST_REPO_PATH, 'branch', '-m', BRANCH_CURRENT))
5252
.then(() => git('-C', TEST_REPO_PATH, 'branch', BRANCH_SAME_COMMIT))
53-
.then(() => fsP.mkdir(path.join(TEST_REPO_PATH, SUBDIR_NAME)));
53+
.then(() => mkdirP(path.join(TEST_REPO_PATH, SUBDIR_NAME)));
5454
});
5555

5656
before('run from test repository', () => {

0 commit comments

Comments
 (0)