Skip to content

Commit 43d6212

Browse files
JonathanPrinceFishrock123
authored andcommitted
test: update test/parallel/test-child-process-send-utf8.js
change var to const use arrow function in callback use strict equal PR-URL: #8594 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 6924a4d commit 43d6212

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
4-
var fork = require('child_process').fork;
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const fork = require('child_process').fork;
55

6-
var expected = Array(1e5).join('ßßßß');
6+
const expected = Array(1e5).join('ßßßß');
77
if (process.argv[2] === 'child') {
88
process.send(expected);
99
} else {
10-
var child = fork(process.argv[1], ['child']);
11-
child.on('message', common.mustCall(function(actual) {
12-
assert.equal(actual, expected);
10+
const child = fork(process.argv[1], ['child']);
11+
child.on('message', common.mustCall((actual) => {
12+
assert.strictEqual(actual, expected);
1313
}));
1414
}

0 commit comments

Comments
 (0)