Browse Source

test: cleanup test-buffer-sharedarraybuffer

remove third argument `0` from calls to `assert.deepStrictEqual`

PR-URL: https://github.com/nodejs/node/pull/15896
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
v6.x-staging
Rafal Leszczynski 7 years ago
committed by Myles Borins
parent
commit
88e6ecc6a1
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 6
      test/parallel/test-buffer-sharedarraybuffer.js

6
test/parallel/test-buffer-sharedarraybuffer.js

@ -16,15 +16,15 @@ arr2[1] = 4000;
const arr_buf = Buffer.from(arr1.buffer);
const ar_buf = Buffer.from(arr2.buffer);
assert.deepStrictEqual(arr_buf, ar_buf, 0);
assert.deepStrictEqual(arr_buf, ar_buf);
arr1[1] = 6000;
arr2[1] = 6000;
assert.deepStrictEqual(arr_buf, ar_buf, 0);
assert.deepStrictEqual(arr_buf, ar_buf);
// Checks for calling Buffer.byteLength on a SharedArrayBuffer
assert.strictEqual(Buffer.byteLength(sab), sab.byteLength, 0);
assert.strictEqual(Buffer.byteLength(sab), sab.byteLength);
assert.doesNotThrow(() => Buffer.from({buffer: sab}));

Loading…
Cancel
Save