summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-read-stream.js
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-10 20:55:21 -0400
committerRefael Ackermann <refack@gmail.com>2017-07-21 15:13:47 -0400
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/parallel/test-fs-read-stream.js
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
downloadandroid-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.gz
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.bz2
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.zip
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/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.js16
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 9ec397c31e..1558ce1ee5 100644
--- a/test/parallel/test-fs-read-stream.js
+++ b/test/parallel/test-fs-read-stream.js
@@ -86,7 +86,7 @@ const rangeFile = path.join(common.fixturesDir, '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 = path.join(common.fixturesDir, '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 = path.join(common.fixturesDir, '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 = path.join(common.fixturesDir, '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 = path.join(common.fixturesDir, '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() {