Files
Netcatty/application/app/AppFollowTerminalTheme.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
436 B
TypeScript

import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
const source = readFileSync(new URL("../../App.tsx", import.meta.url), "utf8");
test("follow-app terminal theme selection reads the latest custom theme store", () => {
assert.match(source, /customThemeStore\.getThemeById\(themeId\)/);
assert.doesNotMatch(source, /const selectedTheme = themeById\.get\(themeId\)/);
});