Skip to content

Commit ebbd07d

Browse files
Christina ChanMylesBorins
Christina Chan
authored andcommitted
test: remove redundant error messages
Remove redundant error messages for assert.strictEqual() Backport-PR-URL: #19447 PR-URL: #16043 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 011b53e commit ebbd07d

File tree

1 file changed

+2
-6
lines changed
  • test/addons-napi/test_typedarray

1 file changed

+2
-6
lines changed

test/addons-napi/test_typedarray/test.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ arrayTypes.forEach((currentType) => {
5050

5151
assert.ok(theArray instanceof currentType,
5252
'Type of new array should match that of the template');
53-
assert.notStrictEqual(theArray,
54-
template,
55-
'the new array should not be a copy of the template');
56-
assert.strictEqual(theArray.buffer,
57-
buffer,
58-
'Buffer for array should match the one passed in');
53+
assert.notStrictEqual(theArray, template);
54+
assert.strictEqual(theArray.buffer, buffer);
5955
});

0 commit comments

Comments
 (0)