Skip to content

Commit

Permalink
test: remove redundant error messages
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Christina Chan authored and MylesBorins committed Apr 16, 2018
1 parent 011b53e commit ebbd07d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/addons-napi/test_typedarray/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

0 comments on commit ebbd07d

Please sign in to comment.