Skip to content

Commit

Permalink
test: update test/parallel/test-child-process-send-utf8.js
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
JonathanPrince authored and Fishrock123 committed Oct 11, 2016
1 parent 6924a4d commit 43d6212
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-child-process-send-utf8.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var fork = require('child_process').fork;
const common = require('../common');
const assert = require('assert');
const fork = require('child_process').fork;

var expected = Array(1e5).join('ßßßß');
const expected = Array(1e5).join('ßßßß');
if (process.argv[2] === 'child') {
process.send(expected);
} else {
var child = fork(process.argv[1], ['child']);
child.on('message', common.mustCall(function(actual) {
assert.equal(actual, expected);
const child = fork(process.argv[1], ['child']);
child.on('message', common.mustCall((actual) => {
assert.strictEqual(actual, expected);
}));
}

0 comments on commit 43d6212

Please sign in to comment.