From f605ba946034e191b828de64534eb4d3b72ea1ab Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 3 Apr 2019 11:20:29 -0700 Subject: [PATCH] fixup! doc: fix default maxBuffer size --- ...xec-maxBuffer.js => test-child-process-exec-maxbuf.js} | 4 ++-- ...maxBuffer.js => test-child-process-execfile-maxbuf.js} | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename test/parallel/{test-child-process-exec-maxBuffer.js => test-child-process-exec-maxbuf.js} (96%) rename test/parallel/{test-child-process-execfile-maxBuffer.js => test-child-process-execfile-maxbuf.js} (90%) diff --git a/test/parallel/test-child-process-exec-maxBuffer.js b/test/parallel/test-child-process-exec-maxbuf.js similarity index 96% rename from test/parallel/test-child-process-exec-maxBuffer.js rename to test/parallel/test-child-process-exec-maxbuf.js index ad286b6ce32932..1a47cbee3c2cf1 100644 --- a/test/parallel/test-child-process-exec-maxBuffer.js +++ b/test/parallel/test-child-process-exec-maxbuf.js @@ -23,8 +23,8 @@ function runChecks(err, stdio, streamName, expected) { // default value { - // eslint-disable-next-line max-len - const cmd = `${process.execPath} -e "console.log('a'.repeat(200 * 1024 - 1))"`; + const cmd = + `${process.execPath} -e "console.log('a'.repeat(200 * 1024 - 1))"`; cp.exec(cmd, common.mustCall((err, stdout, stderr) => { assert.ifError(err); diff --git a/test/parallel/test-child-process-execfile-maxBuffer.js b/test/parallel/test-child-process-execfile-maxbuf.js similarity index 90% rename from test/parallel/test-child-process-execfile-maxBuffer.js rename to test/parallel/test-child-process-execfile-maxbuf.js index 73b8b8b167ec23..e1e47e89e1500a 100644 --- a/test/parallel/test-child-process-execfile-maxBuffer.js +++ b/test/parallel/test-child-process-execfile-maxbuf.js @@ -15,7 +15,7 @@ function checkFactory(streamName) { { execFile( process.execPath, - ['-e', "console.log('a'.repeat(200 * 1024))"], + ['-e', `console.log('a'.repeat(200 * 1024))`], checkFactory('stdout') ); } @@ -24,7 +24,7 @@ function checkFactory(streamName) { { execFile( process.execPath, - ['-e', "console.log('a'.repeat(200 * 1024 - 1))"], + ['-e', `console.log('a'.repeat(200 * 1024 - 1))`], common.mustCall((err, stdout, stderr) => { assert.ifError(err); assert.strictEqual(stdout.trim(), 'a'.repeat(200 * 1024 - 1)); @@ -38,7 +38,7 @@ function checkFactory(streamName) { execFile( process.execPath, - ['-e', "console.log('hello world');"], + ['-e', `console.log('hello world');`], options, common.mustCall((err, stdout, stderr) => { assert.ifError(err); @@ -65,7 +65,7 @@ const unicode = '中文测试'; // length = 4, byte length = 12 { execFile( process.execPath, - ['-e', `console.error('${unicode}');"`], + ['-e', `console.error('${unicode}');`], { maxBuffer: 10 }, checkFactory('stderr') );