test: convert assert.equal to assert.strictEqual
converts an instance of assert.equal in a file already mostly updated to use assert.strictEqual PR-URL: https://github.com/nodejs/node/pull/9925 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
6eee34a168
commit
6ed0e8b49c
@ -35,7 +35,7 @@ try {
|
|||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
SlowBuffer(buffer.kMaxLength).length, buffer.kMaxLength);
|
SlowBuffer(buffer.kMaxLength).length, buffer.kMaxLength);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
assert.equal(e.message, 'Array buffer allocation failed');
|
assert.strictEqual(e.message, 'Array buffer allocation failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
// should work with number-coercible values
|
// should work with number-coercible values
|
||||||
|
Loading…
x
Reference in New Issue
Block a user