From 2a67a49053c7c23a3ec1d6eccb16cf580950ab8b Mon Sep 17 00:00:00 2001 From: potham Date: Wed, 21 Nov 2018 00:36:10 +0530 Subject: [PATCH] test: replace callback with arrow function PR-URL: https://github.com/nodejs/node/pull/24531 Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig --- test/parallel/test-child-process-kill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-child-process-kill.js b/test/parallel/test-child-process-kill.js index 6f986c0ffa932f..00aab44dd1318d 100644 --- a/test/parallel/test-child-process-kill.js +++ b/test/parallel/test-child-process-kill.js @@ -29,7 +29,7 @@ cat.stdout.on('end', common.mustCall()); cat.stderr.on('data', common.mustNotCall()); cat.stderr.on('end', common.mustCall()); -cat.on('exit', common.mustCall(function(code, signal) { +cat.on('exit', common.mustCall((code, signal) => { assert.strictEqual(code, null); assert.strictEqual(signal, 'SIGTERM'); }));