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
+9
View File
@@ -20,6 +20,15 @@ function withApi() {
}
describe("api", () => {
test("creates a drawing with dark theme by default", async () => {
const { api, cleanup } = withApi();
const created = await api.createDrawing().json();
expect(created.appState.theme).toBe("dark");
cleanup();
});
test("returns 400 for invalid JSON", async () => {
const { api, cleanup } = withApi();
const drawing = await api.createDrawing().json();