Commiteb1cdf2
test: align theme-default + CLAUDE.md heading tests with this session's changes
test: align theme-default + CLAUDE.md heading tests with this session's changes - theme toggle: default is now light, so a cookieless toggle flips light->dark (was dark->light). - CLAUDE.md: Source-of-truth heading is now 'self-canonical, no GitHub mirror'. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2 files changed+4−3eb1cdf28154827100a7f05f09cdf9f07594910dd
2 changed files+4−3
Modifiedsrc/__tests__/claude-config.test.ts+1−1View fileUnifiedSplit
@@ -92,7 +92,7 @@ describe(".claude/settings.json", () => {
9292describe("CLAUDE.md", () => {
9393 it("contains the 'Source of truth: Gluecron' section", async () => {
9494 const raw = await readFile(CLAUDE_MD, "utf8");
95 expect(raw).toContain("## Source of truth: Gluecron (not GitHub)");
95 expect(raw).toContain("## Source of truth: Gluecron (self-canonical, no GitHub mirror)");
9696 });
9797
9898 it("references .claude/settings.json and the mcp-tools module", async () => {
Modifiedsrc/__tests__/green-ecosystem.test.ts+3−2View fileUnifiedSplit
@@ -279,10 +279,11 @@ describe("GateTest inbound hook", () => {
279279describe("theme toggle", () => {
280280 it("GET /theme/toggle sets a cookie and redirects", async () => {
281281 const res = await app.request("/theme/toggle");
282 // 302 redirect; no cookie yet means we flip from the default (dark) → light
282 // 302 redirect; the default is now LIGHT (readTheme defaults to light to
283 // match the SSR + pre-paint default), so the first toggle flips light → dark.
283284 expect([301, 302, 303, 307]).toContain(res.status);
284285 const setCookie = res.headers.get("set-cookie") || "";
285 expect(/theme=light/.test(setCookie)).toBe(true);
286 expect(/theme=dark/.test(setCookie)).toBe(true);
286287 });
287288
288289 it("GET /theme/toggle flips an existing 'light' cookie back to dark", async () => {
289290