import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import test from "node:test"; const source = readFileSync(new URL("./ThemeSidePanel.tsx", import.meta.url), "utf8"); test("theme side panel keeps theme selection visible while following app theme", () => { assert.doesNotMatch(source, /const \[activeTab, setActiveTab\] = useState\(followAppTerminalTheme \? 'font' : 'theme'\)/); assert.doesNotMatch(source, /!\s*themeEditingLocked\s*&&\s*\(\s* { assert.match(source, /hiddenSelectedTheme && \(\s* { assert.match( source, /TERMINAL_SIDE_PANEL_INNER_HEADER_CLASS, 'flex items-center px-1\.5 gap-0\.5 border-b'/, ); });