From c3ac47c03dc5ed55f66ac8129ace1531ab2ae73f Mon Sep 17 00:00:00 2001 From: Sagar Jadhav Date: Wed, 3 Jun 2020 18:01:53 +0530 Subject: [PATCH] test: changed function to arrow function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Convert callback functions that are anonymous to arrow functions for better readability. PR-URL: https://github.com/nodejs/node/pull/33711 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Juan José Arboleda Reviewed-By: Zeyu Yang --- test/parallel/test-util-promisify.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/parallel/test-util-promisify.js b/test/parallel/test-util-promisify.js index c18f454d2f77ef..cbbe8983fdf105 100644 --- a/test/parallel/test-util-promisify.js +++ b/test/parallel/test-util-promisify.js @@ -143,9 +143,7 @@ const stat = promisify(fs.stat); o.fn = fn; - o.fn().then(common.mustCall(function(val) { - assert(val); - })); + o.fn().then(common.mustCall((val) => assert(val))); } {