Convert function to arrow function in UT
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 8 Oct 2022 13:05:05 +0000 (15:05 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 8 Oct 2022 13:05:05 +0000 (15:05 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/test-utils.js

index ab57685eb58fc000099fe4beec1287c01fcff14a..e63e14f2987748d61030ad964588df864958f3a6 100644 (file)
@@ -1,7 +1,7 @@
 class TestUtils {
   static async waitExits (pool, numberOfExitEventsToWait) {
     let exitEvents = 0
-    return new Promise(function (resolve, reject) {
+    return new Promise(resolve => {
       pool.workers.forEach(w => {
         w.on('exit', () => {
           exitEvents++