Skip to content

Commit

Permalink
test: replace callback with arrow function
Browse files Browse the repository at this point in the history
PR-URL: #24531
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
potham authored and codebytere committed Jan 29, 2019
1 parent af6de29 commit c65063d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-kill.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}));
Expand Down

0 comments on commit c65063d

Please sign in to comment.