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 <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
5ea88b7496
commit
3594223c2e
@ -50,10 +50,6 @@ arrayTypes.forEach((currentType) => {
|
|||||||
|
|
||||||
assert.ok(theArray instanceof currentType,
|
assert.ok(theArray instanceof currentType,
|
||||||
'Type of new array should match that of the template');
|
'Type of new array should match that of the template');
|
||||||
assert.notStrictEqual(theArray,
|
assert.notStrictEqual(theArray, template);
|
||||||
template,
|
assert.strictEqual(theArray.buffer, buffer);
|
||||||
'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');
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user