From 68ef265c3904765ea59a20cf46d683b703baaa55 Mon Sep 17 00:00:00 2001 From: Himadri Ganguly Date: Sat, 31 Jul 2021 15:57:33 +0530 Subject: [PATCH] test: convert anonymous function to arrow function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39604 Reviewed-By: Gireesh Punathil Reviewed-By: Tobias Nießen Reviewed-By: Zijian Liu --- test/parallel/test-http-write-head-2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-write-head-2.js b/test/parallel/test-http-write-head-2.js index 248ac45ac49f8f..a47d0d72e3be56 100644 --- a/test/parallel/test-http-write-head-2.js +++ b/test/parallel/test-http-write-head-2.js @@ -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'); @@ -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();