Skip to content

Commit

Permalink
test: convert anonymous function to arrow function
Browse files Browse the repository at this point in the history
PR-URL: #39604
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
  • Loading branch information
himadriganguly authored and nodejs-github-bot committed Aug 2, 2021
1 parent ac621ff commit fcc3910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-write-head-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const http = require('http');
res.end();
}));

server.listen(0, common.mustCall(function() {
server.listen(0, common.mustCall(() => {
http.get({ port: server.address().port }, common.mustCall((res) => {
assert.strictEqual(res.headers.test, '1');
assert.strictEqual(res.headers.test2, '2');
Expand All @@ -51,7 +51,7 @@ const http = require('http');
res.end();
}));

server.listen(0, common.mustCall(function() {
server.listen(0, common.mustCall(() => {
http.get({ port: server.address().port }, common.mustCall((res) => {
res.resume().on('end', common.mustCall(() => {
server.close();
Expand Down

0 comments on commit fcc3910

Please sign in to comment.