Skip to content

Commit

Permalink
test: improve error messages in test-npm-install
Browse files Browse the repository at this point in the history
PR-URL: #11027
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
  • Loading branch information
gonenduk authored and jasnell committed Mar 7, 2017
1 parent e6b2ddd commit 7823aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-npm-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const proc = spawn(process.execPath, args, {
});

function handleExit(code, signalCode) {
assert.equal(code, 0, 'npm install should run without an error');
assert.ok(signalCode === null, 'signalCode should be null');
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');
});
Expand Down

0 comments on commit 7823aac

Please sign in to comment.