tests: Use window.foo instead of var foo

This commit is contained in:
Richard Hansen 2021-04-22 13:20:01 -04:00
parent aea2fb7448
commit 4fa9f9e9d8
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,5 @@
'use strict';
/* global frontendTestSpecs */
$(() => {
const stringifyException = (exception) => {
let err = exception.stack || exception.toString();
@ -144,7 +142,7 @@ $(() => {
require.setGlobalKeyPath('require');
const $body = $('body');
for (const spec of frontendTestSpecs.map((spec) => encodeURI(spec))) {
for (const spec of window.frontendTestSpecs.map((spec) => encodeURI(spec))) {
$body.append($('<script>').attr('src', spec.startsWith('/') ? spec : `specs/${spec}`));
}