feat(settings): add theme preference selector replacing header ModeToggle

This commit is contained in:
2026-04-21 23:23:32 -04:00
parent 3e3c8056b1
commit 7f7c945396
2 changed files with 64 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
import { describe, expect, test } from "bun:test";
import { readFileSync } from "node:fs";
describe("settings panel", () => {
test("theme controls are available from settings after leaving the mobile header", () => {
const source = readFileSync("src/components/settings-panel.tsx", "utf8");
expect(source).toContain("Theme preference");
expect(source).toContain("setTheme(");
});
});