From f2db1262a7fcbeff06b5347e4c87ab497cc98bc6 Mon Sep 17 00:00:00 2001 From: Ellis Chang Date: Wed, 22 Nov 2017 16:28:23 +0800 Subject: [PATCH] replace `fs.accessAsync` with `common.fileExists` replace calls to `fs.accessAsync` with `common.fileExists` in `test/parallel/test-npm-install.js` --- test/parallel/test-npm-install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js index 34f48d50ccdb2b..be6ee2ebb76682 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -58,6 +58,6 @@ function handleExit(error, stdout, stderr) { assert.strictEqual(code, 0, `npm install got error code ${code}`); assert.strictEqual(signalCode, null, `unexpected signal: ${signalCode}`); assert.doesNotThrow(function() { - fs.accessSync(`${installDir}/node_modules/package-name`); + common.fileExists(`${installDir}/node_modules/package-name`); }); }