From 6e7ace2dcf55b3a2a7c27b548d95a392be8d1bca Mon Sep 17 00:00:00 2001 From: Leko Date: Mon, 4 Dec 2017 16:21:18 +0900 Subject: [PATCH] test: replace fs.accessSync with fs.existsSync PR-URL: https://github.com/nodejs/node/pull/17446 Reviewed-By: Luigi Pinca Reviewed-By: Anatoli Papirovski Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig --- test/parallel/test-npm-install.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js index 4e718a78ddcbdd..d4f8149a844a27 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -55,7 +55,5 @@ 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`); - }); + assert(fs.existsSync(`${installDir}/node_modules/package-name`)); }