From 20f281a5e4f8104d1dd64c02785d07739ff47507 Mon Sep 17 00:00:00 2001 From: Jonathan Prince Date: Sat, 17 Sep 2016 11:21:13 +0200 Subject: [PATCH] test: update test child process send utf8 change var to const use arrow function in callback use strict equal --- test/parallel/test-child-process-send-utf8.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/parallel/test-child-process-send-utf8.js b/test/parallel/test-child-process-send-utf8.js index 7ba76e9bd1ddc8..c5d0943301c730 100644 --- a/test/parallel/test-child-process-send-utf8.js +++ b/test/parallel/test-child-process-send-utf8.js @@ -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); })); }