From 31c97178c142ddbb4f4a1b942f6ec31e01ae2b2f Mon Sep 17 00:00:00 2001 From: Daniil Shakir Date: Tue, 22 Aug 2017 00:36:32 +0300 Subject: [PATCH] test: remove unused parameters Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/14968 Reviewed-By: Rich Trott Reviewed-By: Kunal Pathak Reviewed-By: Colin Ihrig Reviewed-By: David Cai Reviewed-By: Yuta Hiroto Reviewed-By: Luigi Pinca Reviewed-By: Daniel Bevenius Reviewed-By: James M Snell --- test/addons-napi/test_async/test.js | 2 +- test/addons-napi/test_typedarray/test.js | 2 +- test/addons/repl-domain-abort/test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/addons-napi/test_async/test.js b/test/addons-napi/test_async/test.js index eda6963743ff6f..cfd39a5b11ae2d 100644 --- a/test/addons-napi/test_async/test.js +++ b/test/addons-napi/test_async/test.js @@ -9,7 +9,7 @@ const testException = 'test_async_cb_exception'; // Exception thrown from async completion callback. // (Tested in a spawned process because the exception is fatal.) if (process.argv[2] === 'child') { - test_async.Test(1, common.mustCall(function(err, val) { + test_async.Test(1, common.mustCall(function() { throw new Error(testException); })); return; diff --git a/test/addons-napi/test_typedarray/test.js b/test/addons-napi/test_typedarray/test.js index dcb7d76442f608..b81295902069b7 100644 --- a/test/addons-napi/test_typedarray/test.js +++ b/test/addons-napi/test_typedarray/test.js @@ -44,7 +44,7 @@ const arrayTypes = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array ]; -arrayTypes.forEach((currentType, key) => { +arrayTypes.forEach((currentType) => { const template = Reflect.construct(currentType, buffer); const theArray = test_typedarray.CreateTypedArray(template, buffer); diff --git a/test/addons/repl-domain-abort/test.js b/test/addons/repl-domain-abort/test.js index 8e5d8785164fb9..9b9a63abfb685c 100644 --- a/test/addons/repl-domain-abort/test.js +++ b/test/addons/repl-domain-abort/test.js @@ -25,7 +25,7 @@ const lines = [ const dInput = new stream.Readable(); const dOutput = new stream.Writable(); -dInput._read = function _read(size) { +dInput._read = function _read() { while (lines.length > 0 && this.push(lines.shift())); if (lines.length === 0) this.push(null);