Skip to content

Commit

Permalink
test: cleanup test-buffer-sharedarraybuffer
Browse files Browse the repository at this point in the history
remove third argument `0` from calls to `assert.deepStrictEqual`

PR-URL: nodejs/node#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>
  • Loading branch information
RafLeszczynski authored and addaleax committed Oct 11, 2017
1 parent 8d5fc7f commit 92b3ecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-buffer-sharedarraybuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));

0 comments on commit 92b3ecf

Please sign in to comment.