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:
parent
ccd1ed9e91
commit
f85b43537d
@ -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');
|
||||
}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user