Files
Netcatty/components/settings/tabs/SettingsTerminalTab.test.ts
T
2026-06-25 15:44:59 +08:00

17 lines
725 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/);
});
test("terminal settings expose host key verification toggle", () => {
assert.match(source, /settings\.terminal\.connection\.verifyHostKeys/);
assert.match(source, /checked=\{terminalSettings\.verifyHostKeys\}/);
assert.match(source, /updateTerminalSetting\("verifyHostKeys", v\)/);
});