Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import {
4 createMobileThemeRuntimeOperations,
5 type MobileThemeRuntimeState,
6} from "./mobileThemeRuntime";
7
8const initialState: MobileThemeRuntimeState = {
9 baseFontSize: 16,
10 themeAppearance: "light",
11 themeMode: "system",
12};
13
14describe("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});