Skip to content

Commit b14d7b3

Browse files
gonendukMylesBorins
authored andcommitted
test: improve error messages in test-npm-install
PR-URL: #11027 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent 87488ba commit b14d7b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-npm-install.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ const proc = spawn(process.execPath, args, {
4949
});
5050

5151
function handleExit(code, signalCode) {
52-
assert.equal(code, 0, 'npm install should run without an error');
53-
assert.ok(signalCode === null, 'signalCode should be null');
52+
assert.strictEqual(code, 0, `npm install got error code ${code}`);
53+
assert.strictEqual(signalCode, null, `unexpected signal: ${signalCode}`);
5454
assert.doesNotThrow(function() {
5555
fs.accessSync(installDir + '/node_modules/package-name');
5656
});

0 commit comments

Comments
 (0)