diff options
author | James M Snell <jasnell@gmail.com> | 2017-09-20 10:36:14 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-09-20 12:32:17 -0700 |
commit | 91e96d8f08d3a3d65679ad0cbcea86a94510ec4b (patch) | |
tree | 2c5b4eb018f41ff992e368e5e34b918f14c7c299 /test/parallel/test-fs-read-stream.js | |
parent | 9049f09e0f53cb40d4cd03f2a4f95056a19ebae4 (diff) | |
download | node-new-91e96d8f08d3a3d65679ad0cbcea86a94510ec4b.tar.gz |
lib,src: fix consistent spacing inside braces
PR-URL: #14162
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-read-stream.js')
-rw-r--r-- | test/parallel/test-fs-read-stream.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/parallel/test-fs-read-stream.js b/test/parallel/test-fs-read-stream.js index eb216d2a4d..04c10b5a44 100644 --- a/test/parallel/test-fs-read-stream.js +++ b/test/parallel/test-fs-read-stream.js @@ -86,7 +86,7 @@ const rangeFile = fixtures.path('x.txt'); } { - const file = fs.createReadStream(fn, {encoding: 'utf8'}); + const file = fs.createReadStream(fn, { encoding: 'utf8' }); file.length = 0; file.on('data', function(data) { assert.strictEqual('string', typeof data); @@ -107,7 +107,7 @@ const rangeFile = fixtures.path('x.txt'); { const file = - fs.createReadStream(rangeFile, {bufferSize: 1, start: 1, end: 2}); + fs.createReadStream(rangeFile, { bufferSize: 1, start: 1, end: 2 }); let contentRead = ''; file.on('data', function(data) { contentRead += data.toString('utf-8'); @@ -118,7 +118,7 @@ const rangeFile = fixtures.path('x.txt'); } { - const file = fs.createReadStream(rangeFile, {bufferSize: 1, start: 1}); + const file = fs.createReadStream(rangeFile, { bufferSize: 1, start: 1 }); file.data = ''; file.on('data', function(data) { file.data += data.toString('utf-8'); @@ -130,7 +130,7 @@ const rangeFile = fixtures.path('x.txt'); { // Ref: https://github.com/nodejs/node-v0.x-archive/issues/2320 - const file = fs.createReadStream(rangeFile, {bufferSize: 1.23, start: 1}); + const file = fs.createReadStream(rangeFile, { bufferSize: 1.23, start: 1 }); file.data = ''; file.on('data', function(data) { file.data += data.toString('utf-8'); @@ -141,7 +141,7 @@ const rangeFile = fixtures.path('x.txt'); } assert.throws(function() { - fs.createReadStream(rangeFile, {start: 10, end: 2}); + fs.createReadStream(rangeFile, { start: 10, end: 2 }); }, /"start" option must be <= "end" option/); { @@ -165,7 +165,7 @@ assert.throws(function() { } { - let file = fs.createReadStream(rangeFile, {autoClose: false }); + let file = fs.createReadStream(rangeFile, { autoClose: false }); let data = ''; file.on('data', function(chunk) { data += chunk; }); file.on('end', common.mustCall(function() { @@ -179,7 +179,7 @@ assert.throws(function() { function fileNext() { // This will tell us if the fd is usable again or not. - file = fs.createReadStream(null, {fd: file.fd, start: 0 }); + file = fs.createReadStream(null, { fd: file.fd, start: 0 }); file.data = ''; file.on('data', function(data) { file.data += data; @@ -196,7 +196,7 @@ assert.throws(function() { { // Just to make sure autoClose won't close the stream because of error. - const file = fs.createReadStream(null, {fd: 13337, autoClose: false }); + const file = fs.createReadStream(null, { fd: 13337, autoClose: false }); file.on('data', common.mustNotCall()); file.on('error', common.mustCall()); process.on('exit', function() { |