summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-12-18 17:52:20 -0800
committerRich Trott <rtrott@gmail.com>2018-12-21 10:38:43 -0800
commitb0a334be8dc9e40845620785884bc0bbd596ee11 (patch)
treed5dbde20a5c3eeecfde09c4dca5e5a06de9a61b4 /test
parent966a2df0f620cfe59e6ce2b161ff8bf7446b46ee (diff)
downloadandroid-node-v8-b0a334be8dc9e40845620785884bc0bbd596ee11.tar.gz
android-node-v8-b0a334be8dc9e40845620785884bc0bbd596ee11.tar.bz2
android-node-v8-b0a334be8dc9e40845620785884bc0bbd596ee11.zip
test: remove unnecessary eslint-disable comments
PR-URL: https://github.com/nodejs/node/pull/25119 Refs: https://eslint.org/docs/user-guide/command-line-interface#--report-unused-disable-directives Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test')
-rw-r--r--test/common/wpt.js1
-rw-r--r--test/js-native-api/test_general/testNapiRun.js1
-rw-r--r--test/parallel/test-assert-deep.js2
-rw-r--r--test/parallel/test-assert.js3
4 files changed, 1 insertions, 6 deletions
diff --git a/test/common/wpt.js b/test/common/wpt.js
index 2a25a22af5..de8dd0fc42 100644
--- a/test/common/wpt.js
+++ b/test/common/wpt.js
@@ -1,4 +1,3 @@
-/* eslint-disable node-core/required-modules */
'use strict';
const assert = require('assert');
diff --git a/test/js-native-api/test_general/testNapiRun.js b/test/js-native-api/test_general/testNapiRun.js
index e322d899ed..38bfa3a516 100644
--- a/test/js-native-api/test_general/testNapiRun.js
+++ b/test/js-native-api/test_general/testNapiRun.js
@@ -4,7 +4,6 @@ const common = require('../../common');
const assert = require('assert');
// `addon` is referenced through the eval expression in testFile
-// eslint-disable-next-line no-unused-vars
const addon = require(`./build/${common.buildType}/test_general`);
const testCase = '(41.92 + 0.08);';
diff --git a/test/parallel/test-assert-deep.js b/test/parallel/test-assert-deep.js
index ceb17bdf56..68b3ee5497 100644
--- a/test/parallel/test-assert-deep.js
+++ b/test/parallel/test-assert-deep.js
@@ -42,7 +42,7 @@ function re(literals, ...values) {
// That is why we discourage using deepEqual in our own tests.
// Turn off no-restricted-properties because we are testing deepEqual!
-/* eslint-disable no-restricted-properties, prefer-common-expectserror */
+/* eslint-disable no-restricted-properties */
const arr = new Uint8Array([120, 121, 122, 10]);
const buf = Buffer.from(arr);
diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js
index 9028d9ae30..db00ed2836 100644
--- a/test/parallel/test-assert.js
+++ b/test/parallel/test-assert.js
@@ -22,8 +22,6 @@
'use strict';
-/* eslint-disable node-core/prefer-common-expectserror */
-
const common = require('../common');
const assert = require('assert');
const { inspect } = require('util');
@@ -664,7 +662,6 @@ common.expectsError(
const tmp = fs.close;
fs.close = common.mustCall(tmp, 1);
function throwErr() {
- // eslint-disable-next-line prefer-assert-methods
assert(
(Buffer.from('test') instanceof Error)
);