Use one declaration per statement

The old style of merging all of a function's variable declarations into
a single statement made some sense back in the days of var, but there's
no reason to keep doing it now that we use const and let.
This commit is contained in:
Steve Gravrock
2026-03-10 20:02:42 -07:00
parent 03ebebf6fb
commit 434575f49d
88 changed files with 3650 additions and 3604 deletions

View File

@@ -606,11 +606,11 @@ describe('HtmlReporterV2', function() {
reporter.jasmineDone({});
const trigger = container.querySelector(
'.jasmine-run-options .jasmine-trigger'
),
payload = container.querySelector(
'.jasmine-run-options .jasmine-payload'
);
'.jasmine-run-options .jasmine-trigger'
);
const payload = container.querySelector(
'.jasmine-run-options .jasmine-payload'
);
expect(payload).not.toHaveClass('jasmine-open');
@@ -1202,9 +1202,9 @@ describe('HtmlReporterV2', function() {
it('reports traces when present', function() {
const specFailure = container.querySelectorAll(
'.jasmine-spec-detail.jasmine-failed'
)[2],
debugLogs = specFailure.querySelector('.jasmine-debug-log table');
'.jasmine-spec-detail.jasmine-failed'
)[2];
const debugLogs = specFailure.querySelector('.jasmine-debug-log table');
expect(debugLogs).toBeTruthy();
const rows = debugLogs.querySelectorAll('tbody tr');