feat: dark mode by default

This commit is contained in:
2026-05-24 18:36:09 +00:00
parent 1eb5350d09
commit 1e022efa1d
5 changed files with 25 additions and 2 deletions
+7 -1
View File
@@ -1,7 +1,13 @@
import { describe, expect, test } from "bun:test";
import { HttpError, MAX_SCENE_BYTES, normalizeScene, parseJsonBody } from "./scene";
import { HttpError, MAX_SCENE_BYTES, emptyScene, normalizeScene, parseJsonBody } from "./scene";
describe("scene helpers", () => {
test("creates empty scenes with dark theme by default", () => {
const scene = emptyScene();
expect(scene.appState.theme).toBe("dark");
});
test("normalizes volatile app state fields", () => {
const scene = normalizeScene({
elements: [],