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: #15896
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
RafLeszczynski authored and MylesBorins committed Oct 25, 2017
1 parent 6eb88a4 commit 342ac9f
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 342ac9f

Please sign in to comment.