summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Shakir <phpinfo12345@gmail.com>2017-08-22 00:36:32 +0300
committerJames M Snell <jasnell@gmail.com>2017-08-23 08:17:01 -0700
commit6c382dea6bb88330cb2a66a097a49401da85f878 (patch)
tree42338867320df36bc86f9c2daefafcd39bf05152
parent954b346e5a9237dc8e0c87dd8f544d05b81189a0 (diff)
downloadnode-new-6c382dea6bb88330cb2a66a097a49401da85f878.tar.gz
test: remove unused parameters
PR-URL: https://github.com/nodejs/node/pull/14968 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Kunal Pathak <kunal.pathak@microsoft.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--test/addons-napi/test_async/test.js2
-rw-r--r--test/addons-napi/test_typedarray/test.js2
-rw-r--r--test/addons/repl-domain-abort/test.js2
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 eda6963743..cfd39a5b11 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 dcb7d76442..b812959020 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 b1aae497e8..314a219125 100644
--- a/test/addons/repl-domain-abort/test.js
+++ b/test/addons/repl-domain-abort/test.js
@@ -47,7 +47,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);