From 3594223c2e0c92cfb7c1c0a352246387659d2475 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() 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); });