mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
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>
This commit is contained in:
parent
4f0b107334
commit
aa6fac68da
101 changed files with 689 additions and 659 deletions
|
@ -3,7 +3,8 @@
|
|||
require('../common');
|
||||
const assert = require('assert');
|
||||
|
||||
[ 'hex',
|
||||
[
|
||||
'hex',
|
||||
'utf8',
|
||||
'utf-8',
|
||||
'ascii',
|
||||
|
@ -13,11 +14,13 @@ const assert = require('assert');
|
|||
'ucs2',
|
||||
'ucs-2',
|
||||
'utf16le',
|
||||
'utf-16le' ].forEach((enc) => {
|
||||
assert.strictEqual(Buffer.isEncoding(enc), true);
|
||||
});
|
||||
'utf-16le'
|
||||
].forEach((enc) => {
|
||||
assert.strictEqual(Buffer.isEncoding(enc), true);
|
||||
});
|
||||
|
||||
[ 'utf9',
|
||||
[
|
||||
'utf9',
|
||||
'utf-7',
|
||||
'Unicode-FTW',
|
||||
'new gnu gun',
|
||||
|
@ -28,6 +31,7 @@ const assert = require('assert');
|
|||
[],
|
||||
1,
|
||||
0,
|
||||
-1 ].forEach((enc) => {
|
||||
assert.strictEqual(Buffer.isEncoding(enc), false);
|
||||
});
|
||||
-1
|
||||
].forEach((enc) => {
|
||||
assert.strictEqual(Buffer.isEncoding(enc), false);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue