Skip to content

Commit

Permalink
fixup! doc: fix default maxBuffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-github committed Apr 3, 2019
1 parent 34d937d commit f605ba9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
);
}
Expand All @@ -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));
Expand All @@ -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);
Expand All @@ -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')
);
Expand Down

0 comments on commit f605ba9

Please sign in to comment.