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 <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • 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
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.