diff options
author | Prieto, Marcos <marcos.prieto@fmr.com> | 2016-12-01 11:24:16 -0600 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-12-12 13:48:35 -0800 |
commit | 10891a17547a0b99169d7b1b1ee4d61ae108da9c (patch) | |
tree | b0b164308bf4530bc4554418a13b32e6cd9f70d4 /test | |
parent | 7346e55750f9929397432acfa3add02632bb52b4 (diff) | |
download | node-new-10891a17547a0b99169d7b1b1ee4d61ae108da9c.tar.gz |
test: refactor assert.equal, update syntax to ES6
PR-URL: https://github.com/nodejs/node/pull/10190
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-buffer-arraybuffer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-buffer-arraybuffer.js b/test/parallel/test-buffer-arraybuffer.js index f40c43939f..4353af17ef 100644 --- a/test/parallel/test-buffer-arraybuffer.js +++ b/test/parallel/test-buffer-arraybuffer.js @@ -13,9 +13,9 @@ const buf = Buffer.from(ab); assert.ok(buf instanceof Buffer); -assert.equal(buf.parent, buf.buffer); -assert.equal(buf.buffer, ab); -assert.equal(buf.length, ab.byteLength); +assert.strictEqual(buf.parent, buf.buffer); +assert.strictEqual(buf.buffer, ab); +assert.strictEqual(buf.length, ab.byteLength); buf.fill(0xC); @@ -44,7 +44,7 @@ assert.throws(function() { }, TypeError); // write{Double,Float}{LE,BE} with noAssert should not crash, cf. #3766 -var b = Buffer.allocUnsafe(1); +const b = Buffer.allocUnsafe(1); b.writeFloatLE(11.11, 0, true); b.writeFloatBE(11.11, 0, true); b.writeDoubleLE(11.11, 0, true); |