Skip to content

Commit ebbd07d

Browse files
Christina ChanMylesBorins
Christina Chan
authored andcommittedApr 16, 2018
test: remove redundant error messages
Remove redundant error messages for assert.strictEqual() Backport-PR-URL: #19447 PR-URL: #16043 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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

+2-6
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)
Please sign in to comment.