summaryrefslogtreecommitdiff
path: root/test/parallel/test-util-inherits.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-07-25 10:37:08 -0700
committerRich Trott <rtrott@gmail.com>2017-07-27 09:24:20 -0700
commitaa6fac68da9b1d42123f0d56f60f39dc43d85d84 (patch)
treeeb94a442a9f929514b12b9ef4cd2a798c90c348e /test/parallel/test-util-inherits.js
parent4f0b10733483fbb62776b7973200e5fbb56349a9 (diff)
downloadandroid-node-v8-aa6fac68da9b1d42123f0d56f60f39dc43d85d84.tar.gz
android-node-v8-aa6fac68da9b1d42123f0d56f60f39dc43d85d84.tar.bz2
android-node-v8-aa6fac68da9b1d42123f0d56f60f39dc43d85d84.zip
test: adjust indentation for stricter linting
ESLint 4.x has stricter linting than previous versions. We are currently using the legacy indentation rules in the test directory. This commit changes the indentation of files to comply with the stricter 4.x linting and enable stricter linting in the test directory. PR-URL: https://github.com/nodejs/node/pull/14431 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/parallel/test-util-inherits.js')
-rw-r--r--test/parallel/test-util-inherits.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/parallel/test-util-inherits.js b/test/parallel/test-util-inherits.js
index 31b7e6ad3d..342e1f03f7 100644
--- a/test/parallel/test-util-inherits.js
+++ b/test/parallel/test-util-inherits.js
@@ -30,7 +30,7 @@ assert.strictEqual(b.a(), 'a');
assert.strictEqual(b.b(), 'b');
assert.strictEqual(b.constructor, B);
- // two levels of inheritance
+// two levels of inheritance
function C() {
B.call(this, 'b');
this._c = 'c';
@@ -83,9 +83,9 @@ assert.strictEqual(e.constructor, E);
assert.throws(function() {
inherits(A, {});
}, common.expectsError({
- code: 'ERR_INVALID_ARG_TYPE',
- type: TypeError,
- message: 'The "superCtor.prototype" property must be of type function'
+ code: 'ERR_INVALID_ARG_TYPE',
+ type: TypeError,
+ message: 'The "superCtor.prototype" property must be of type function'
})
);
assert.throws(function() {
@@ -94,8 +94,8 @@ assert.throws(function() {
assert.throws(function() {
inherits(null, A);
}, common.expectsError({
- code: 'ERR_INVALID_ARG_TYPE',
- type: TypeError,
- message: 'The "ctor" argument must be of type function'
+ code: 'ERR_INVALID_ARG_TYPE',
+ type: TypeError,
+ message: 'The "ctor" argument must be of type function'
})
);