feat(settings): add theme preference selector replacing header ModeToggle
This commit is contained in:
1 parent
3e3c8056b1
commit
7f7c945396
2 files changed
+64
-1
No files matched your search
@@ -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(");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user