The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { |
| 4 | createMobileThemeRuntimeOperations, |
| 5 | type MobileThemeRuntimeState, |
| 6 | } from "./mobileThemeRuntime"; |
| 7 | |
| 8 | const initialState: MobileThemeRuntimeState = { |
| 9 | baseFontSize: 16, |
| 10 | themeAppearance: "light", |
| 11 | themeMode: "system", |
| 12 | }; |
| 13 | |
| 14 | describe("mobileThemeRuntime", () => { |
| 15 | it("lets system appearance changes flow through the root ScopedTheme only", () => { |
| 16 | const operations = createMobileThemeRuntimeOperations(initialState, { |
| 17 | ...initialState, |
| 18 | themeAppearance: "dark", |
| 19 | }); |
| 20 | |
| 21 | expect(operations).toEqual([]); |
| 22 | }); |
| 23 | }); |