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: nodejs#39604
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Zijian Liu <[email protected]>
  • 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.