From 5bba809e010cf43d3706fc9d60788ad858942ee5 Mon Sep 17 00:00:00 2001 From: mrgorbo Date: Fri, 6 Oct 2017 13:20:05 -0600 Subject: [PATCH] test: cleaned up assert messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/16032 Reviewed-By: Ruben Bridgewater Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Timothy Gu Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- test/addons-napi/test_warning/test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/addons-napi/test_warning/test.js b/test/addons-napi/test_warning/test.js index 3c5b9222c0e5c2..c82008435fd8fd 100644 --- a/test/addons-napi/test_warning/test.js +++ b/test/addons-napi/test_warning/test.js @@ -11,8 +11,6 @@ if (process.argv[2] === 'child') { 'change at any time.'; const result = run(process.execPath, [__filename, 'child']); - assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337'], - 'Modules loaded correctly'); - assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2, - 'Warning was displayed only once'); + assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337']); + assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2); }