Skip to content

Commit 8d2a913

Browse files
gonendukitaloacasas
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 17314eb commit 8d2a913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-npm-install.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ const proc = spawn(process.execPath, args, {
5353
});
5454

5555
function handleExit(code, signalCode) {
56-
assert.strictEqual(code, 0, 'npm install should run without an error');
57-
assert.ok(signalCode === null, 'signalCode should be null');
56+
assert.strictEqual(code, 0, `npm install got error code ${code}`);
57+
assert.strictEqual(signalCode, null, `unexpected signal: ${signalCode}`);
5858
assert.doesNotThrow(function() {
5959
fs.accessSync(installDir + '/node_modules/package-name');
6060
});

0 commit comments

Comments
 (0)