Skip to content

Commit 8b698d8

Browse files
Prieto, MarcosFishrock123
Prieto, Marcos
authored andcommitted
test: refactor assert.equal, update syntax to ES6
PR-URL: #10190 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 3749dc6 commit 8b698d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-buffer-arraybuffer.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const buf = Buffer.from(ab);
1313

1414

1515
assert.ok(buf instanceof Buffer);
16-
assert.equal(buf.parent, buf.buffer);
17-
assert.equal(buf.buffer, ab);
18-
assert.equal(buf.length, ab.byteLength);
16+
assert.strictEqual(buf.parent, buf.buffer);
17+
assert.strictEqual(buf.buffer, ab);
18+
assert.strictEqual(buf.length, ab.byteLength);
1919

2020

2121
buf.fill(0xC);
@@ -44,7 +44,7 @@ assert.throws(function() {
4444
}, TypeError);
4545

4646
// write{Double,Float}{LE,BE} with noAssert should not crash, cf. #3766
47-
var b = Buffer.allocUnsafe(1);
47+
const b = Buffer.allocUnsafe(1);
4848
b.writeFloatLE(11.11, 0, true);
4949
b.writeFloatBE(11.11, 0, true);
5050
b.writeDoubleLE(11.11, 0, true);

0 commit comments

Comments
 (0)