diff --git a/src/contextTabKeyboard.test.mjs b/src/contextTabKeyboard.test.mjs index f50b30469..9ebd0e384 100644 --- a/src/contextTabKeyboard.test.mjs +++ b/src/contextTabKeyboard.test.mjs @@ -4,18 +4,31 @@ import { _selectContextMode } from './ui/contextTransactions.js'; import { _initGlobalContextPanel } from './ui/contextBindings.js'; import { clearSelectedLayers } from './ui/contextActions.js'; import { readFileSync as readRadioSource } from 'node:fs'; -const radioBindings = readRadioSource(new URL('./ui/radioBindings.js', import.meta.url), 'utf8'); -const contextView = readRadioSource(new URL('./ui/views/ContextView.vue', import.meta.url), 'utf8'); +const radioBindings = readRadioSource( + new URL('./ui/radioBindings.js', import.meta.url), + 'utf8', +); +const contextView = readRadioSource( + new URL('./ui/views/ContextView.vue', import.meta.url), + 'utf8', +); import { readFileSync } from 'node:fs'; import { test } from 'node:test'; import assert from 'node:assert/strict'; -const html = await renderApplicationHtml(readFileSync(new URL('../index.html', import.meta.url), 'utf8')); +const html = await renderApplicationHtml( + readFileSync(new URL('../index.html', import.meta.url), 'utf8'), +); const css = readStylesheet(new URL('../style.css', import.meta.url)); test('Contacts and Space Missions both participate in the ordinary Tab sequence', () => { - for (const id of ['global-context-flights-btn', 'global-context-missions-btn']) { - const button = html.match(new RegExp(`