Files
Netcatty/components/settings/tabs/SettingsTerminalTab.test.ts
T
陈大猫 94464da004 [codex] Fix follow-app terminal theme selection (#1562)
* Fix follow-app terminal theme selection

* Fix custom follow theme selection
2026-06-22 20:48:16 +08:00

11 lines
432 B
TypeScript

import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
const source = readFileSync(new URL("./SettingsTerminalTab.tsx", import.meta.url), "utf8");
test("terminal settings keep the global theme picker visible while following app theme", () => {
assert.doesNotMatch(source, /\{followAppTerminalTheme \? \(/);
assert.match(source, /terminal\.themeModal\.globalTheme/);
});