From 1516bf473fab1d67ce569e708bb364e71e744bab Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 9 May 2021 16:53:16 -0400 Subject: [PATCH] tests: Delete unnecessary `staticDir` variable --- src/node/hooks/express/tests.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index 111c1643f..ec5fa7b0e 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -56,13 +56,12 @@ exports.expressCreateServer = (hookName, args, cb) => { const getPluginTests = async (callback) => { const moduleDir = 'node_modules/'; const specPath = '/static/tests/frontend/specs/'; - const staticDir = '/static/plugins/'; const plugins = await fsp.readdir(moduleDir); const specLists = await Promise.all(plugins.map(async (plugin) => { const specDir = moduleDir + plugin + specPath; if (!fs.existsSync(specDir)) return []; const specFiles = await fsp.readdir(specDir); - return specFiles.map((spec) => staticDir + plugin + specPath + spec); + return specFiles.map((spec) => `/static/plugins/${plugin}${specPath}${spec}`); })); return [].concat(...specLists); };