test: replace callback with arrow function

PR-URL: https://github.com/nodejs/node/pull/24531
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
potham 2018-11-21 00:36:10 +05:30 committed by Gireesh Punathil
parent ccd1ed9e91
commit f85b43537d

View File

@ -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');
}));