From ebbd07dd271505353e8165b8d685a9807733c96a Mon Sep 17 00:00:00 2001 From: Christina Chan Date: Fri, 6 Oct 2017 12:38:12 -0700 Subject: [PATCH] test: remove redundant error messages Remove redundant error messages for assert.strictEqual() Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/16043 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/addons-napi/test_typedarray/test.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/addons-napi/test_typedarray/test.js b/test/addons-napi/test_typedarray/test.js index b81295902069b7..25f701f2d30c70 100644 --- a/test/addons-napi/test_typedarray/test.js +++ b/test/addons-napi/test_typedarray/test.js @@ -50,10 +50,6 @@ arrayTypes.forEach((currentType) => { assert.ok(theArray instanceof currentType, 'Type of new array should match that of the template'); - assert.notStrictEqual(theArray, - template, - 'the new array should not be a copy of the template'); - assert.strictEqual(theArray.buffer, - buffer, - 'Buffer for array should match the one passed in'); + assert.notStrictEqual(theArray, template); + assert.strictEqual(theArray.buffer, buffer); });