From 0110c66ad19e14003b417d438fce989b7557e4d0 Mon Sep 17 00:00:00 2001 From: Gonen Dukas Date: Fri, 27 Jan 2017 01:02:10 +0200 Subject: [PATCH] improve error messages in test-npm-install --- test/parallel/test-npm-install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js index 00a3504fa925ae..5195dbc3ef9fbd 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -53,8 +53,8 @@ const proc = spawn(process.execPath, args, { }); function handleExit(code, signalCode) { - assert.strictEqual(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'); });