Skip to content

Commit 6e7ace2

Browse files
Lekogibfahn
authored andcommitted
test: replace fs.accessSync with fs.existsSync
PR-URL: #17446 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent a44f085 commit 6e7ace2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/parallel/test-npm-install.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,5 @@ function handleExit(error, stdout, stderr) {
5555

5656
assert.strictEqual(code, 0, `npm install got error code ${code}`);
5757
assert.strictEqual(signalCode, null, `unexpected signal: ${signalCode}`);
58-
assert.doesNotThrow(function() {
59-
fs.accessSync(`${installDir}/node_modules/package-name`);
60-
});
58+
assert(fs.existsSync(`${installDir}/node_modules/package-name`));
6159
}

0 commit comments

Comments
 (0)