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
|
@ -750,7 +750,7 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
|
|||
|
||||
// Call .fill() first, stops valgrind warning about uninitialized memory reads.
|
||||
Buffer.allocUnsafe(3.3).fill().toString();
|
||||
// throws bad argument error in commit 43cb4ec
|
||||
// throws bad argument error in commit 43cb4ec
|
||||
Buffer.alloc(3.3).fill().toString();
|
||||
assert.strictEqual(Buffer.allocUnsafe(NaN).length, 0);
|
||||
assert.strictEqual(Buffer.allocUnsafe(3.3).length, 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue