From e25e8b6886d390441b9c7c1c6349ac6dcdd3ba25 Mon Sep 17 00:00:00 2001 From: Namit Bhalla Date: Sat, 17 Nov 2018 17:20:03 +0530 Subject: [PATCH] test: change anonymous closure functions to arrow functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/24418 Reviewed-By: Ouyang Yadong Reviewed-By: Michaƫl Zasso Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-http-res-write-end-dont-take-array.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-res-write-end-dont-take-array.js b/test/parallel/test-http-res-write-end-dont-take-array.js index fbe71bd6fcbb67..72268efcae3a84 100644 --- a/test/parallel/test-http-res-write-end-dont-take-array.js +++ b/test/parallel/test-http-res-write-end-dont-take-array.js @@ -62,10 +62,10 @@ server.once('request', common.mustCall((req, res) => { server.listen(0, function() { // just make a request, other tests handle responses - http.get({ port: this.address().port }, function(res) { + http.get({ port: this.address().port }, (res) => { res.resume(); // do it again to test .end(Buffer); - http.get({ port: server.address().port }, function(res) { + http.get({ port: server.address().port }, (res) => { res.resume(); server.close(); });