From 353476d287c1cf8f5e0cf0848158f801e5d64cbd Mon Sep 17 00:00:00 2001 From: Rafal Leszczynski Date: Fri, 6 Oct 2017 10:01:43 -0700 Subject: [PATCH] test: cleanup test-buffer-sharedarraybuffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove third argument `0` from calls to `assert.deepStrictEqual` PR-URL: https://github.com/nodejs/node/pull/15896 Reviewed-By: Daijiro Wachi Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Ruben Bridgewater --- test/parallel/test-buffer-sharedarraybuffer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-buffer-sharedarraybuffer.js b/test/parallel/test-buffer-sharedarraybuffer.js index 582841d679c8d1..36b075c56e94d8 100644 --- a/test/parallel/test-buffer-sharedarraybuffer.js +++ b/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}));