From aea2fb7448d627f69259b05023b4ad4ccda150ef Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 22 Apr 2021 13:18:54 -0400 Subject: [PATCH] tests: Rename `specs_list` to `frontendTestSpecs` --- src/node/hooks/express/tests.js | 4 ++-- src/tests/frontend/index.html | 2 +- src/tests/frontend/runner.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index 5b2436989..6b570805b 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -7,7 +7,7 @@ const sanitizePathname = require('../../utils/sanitizePathname'); const settings = require('../../utils/Settings'); exports.expressCreateServer = (hookName, args, cb) => { - args.app.get('/tests/frontend/specs_list.js', async (req, res) => { + args.app.get('/tests/frontend/frontendTestSpecs.js', async (req, res) => { const [coreTests, pluginTests] = await Promise.all([ exports.getCoreTests(), exports.getPluginTests(), @@ -26,7 +26,7 @@ exports.expressCreateServer = (hookName, args, cb) => { console.debug('Sent browser the following test specs:', files); res.setHeader('content-type', 'application/javascript'); - res.end(`var specs_list = ${JSON.stringify(files)};\n`); + res.end(`var frontendTestSpecs = ${JSON.stringify(files)};\n`); }); const rootTestFolder = path.join(settings.root, 'src/tests/frontend/'); diff --git a/src/tests/frontend/index.html b/src/tests/frontend/index.html index 6e2f8ca77..ee16cda89 100644 --- a/src/tests/frontend/index.html +++ b/src/tests/frontend/index.html @@ -24,6 +24,6 @@ - + diff --git a/src/tests/frontend/runner.js b/src/tests/frontend/runner.js index 31fb6d241..cdc218cad 100644 --- a/src/tests/frontend/runner.js +++ b/src/tests/frontend/runner.js @@ -1,6 +1,6 @@ 'use strict'; -/* global specs_list */ +/* global frontendTestSpecs */ $(() => { const stringifyException = (exception) => { @@ -144,7 +144,7 @@ $(() => { require.setGlobalKeyPath('require'); const $body = $('body'); - for (const spec of specs_list.map((spec) => encodeURI(spec))) { + for (const spec of frontendTestSpecs.map((spec) => encodeURI(spec))) { $body.append($('