summaryrefslogtreecommitdiff
path: root/test/sequential/test-stream2-stderr-sync.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/sequential/test-stream2-stderr-sync.js')
-rw-r--r--test/sequential/test-stream2-stderr-sync.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sequential/test-stream2-stderr-sync.js b/test/sequential/test-stream2-stderr-sync.js
index 9822d2908e..c5295c0a2f 100644
--- a/test/sequential/test-stream2-stderr-sync.js
+++ b/test/sequential/test-stream2-stderr-sync.js
@@ -29,7 +29,7 @@ function parent() {
const assert = require('assert');
let i = 0;
children.forEach(function(_, c) {
- const child = spawn(process.execPath, [__filename, '' + c]);
+ const child = spawn(process.execPath, [__filename, String(c)]);
let err = '';
child.stderr.on('data', function(c) {
@@ -37,10 +37,10 @@ function parent() {
});
child.on('close', function() {
- assert.strictEqual(err, 'child ' + c + '\nfoo\nbar\nbaz\n');
+ assert.strictEqual(err, `child ${c}\nfoo\nbar\nbaz\n`);
console.log('ok %d child #%d', ++i, c);
if (i === children.length)
- console.log('1..' + i);
+ console.log(`1..${i}`);
});
});
}