From 24142034346f28ee47494fdd78d614802445fc56 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 9 May 2021 16:44:36 -0400 Subject: [PATCH] tests: Remove unnecessary `return` --- src/node/hooks/express/tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index 870c44cb..5f40a67f 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -66,9 +66,9 @@ const getPluginTests = async (callback) => { .filter(([plugin, specDir]) => fs.existsSync(specDir)) // check plugin exists .map(async ([plugin, specDir]) => { const specFiles = await fsp.readdir(specDir); - return specFiles.map((spec) => { + for (const spec of specFiles) { pluginSpecs.push(staticDir + plugin + specPath + spec); - }); + } })); return pluginSpecs; };