From 0852df74f18d22d0acfc5c0a087cd4f7b189bbe5 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 7 May 2021 17:55:00 -0400 Subject: [PATCH] tests: Unexport unnecessarily exported functions --- src/node/hooks/express/tests.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index b26c09b39..870c44cbc 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -8,10 +8,7 @@ const settings = require('../../utils/Settings'); exports.expressCreateServer = (hookName, args, cb) => { args.app.get('/tests/frontend/frontendTestSpecs.js', async (req, res) => { - const [coreTests, pluginTests] = await Promise.all([ - exports.getCoreTests(), - exports.getPluginTests(), - ]); + const [coreTests, pluginTests] = await Promise.all([getCoreTests(), getPluginTests()]); // merge the two sets of results let files = [].concat(coreTests, pluginTests).sort(); @@ -56,7 +53,7 @@ exports.expressCreateServer = (hookName, args, cb) => { return cb(); }; -exports.getPluginTests = async (callback) => { +const getPluginTests = async (callback) => { const moduleDir = 'node_modules/'; const specPath = '/static/tests/frontend/specs/'; const staticDir = '/static/plugins/'; @@ -76,4 +73,4 @@ exports.getPluginTests = async (callback) => { return pluginSpecs; }; -exports.getCoreTests = async () => await fsp.readdir('src/tests/frontend/specs'); +const getCoreTests = async () => await fsp.readdir('src/tests/frontend/specs');