Skip to content

Commit 58d6180

Browse files
committed
Correct CONST_CASE errors.
1 parent 515bb5d commit 58d6180

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

utils/js/runtimeTests.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const TEST_FILES = glob.sync(path.resolve(
3434
));
3535

3636
describe('Runtime tests', () => {
37-
for (const TEST_URL of TEST_FILES) {
37+
for (let testUrl of TEST_FILES) {
3838
const logs = [];
3939
const passed = /PASSED/i;
4040
const failed = /FAILED/i;
@@ -54,7 +54,7 @@ describe('Runtime tests', () => {
5454
else return msg;
5555
}
5656

57-
const TEST_NAME = path.basename(TEST_URL);
57+
const testName = path.basename(testUrl);
5858
const TestIsFinished = new FutureEvent();
5959
const virtualConsole = new VirtualConsole()
6060
.on('log', (msg) => {
@@ -67,12 +67,12 @@ describe('Runtime tests', () => {
6767
path.resolve(
6868
__dirname,
6969
'../../',
70-
TEST_URL
70+
testUrl
7171
),
7272
'utf-8'
7373
);
7474

75-
it(`should pass test suite ${path.basename(TEST_URL)}`, async () => {
75+
it(`should pass test suite ${path.basename(testUrl)}`, async () => {
7676
const { window } = new JSDOM(TEST_DOC, {
7777
url: 'https://localhost:42',
7878
runScripts: 'dangerously',
@@ -82,9 +82,9 @@ describe('Runtime tests', () => {
8282
try {
8383
await TestIsFinished;
8484
} catch (e) {
85-
fail(`Failed test in suite ${TEST_NAME}: \n${chalk.red(e)}\n`);
85+
fail(`Failed test in suite ${testName}: \n${chalk.red(e)}\n`);
8686
}
87-
console.log(`Passed all tests in suite ${TEST_NAME}`);
87+
console.log(`Passed all tests in suite ${testName}`);
8888
});
8989
}
9090
});

0 commit comments

Comments
 (0)