Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: tolerate any @font-face family quoting in the app-shell weight guard (#3812)

[._.]/ Adam Eivy42bfe75f2952
diff --git a/client/src/test/appShell.test.js b/client/src/test/appShell.test.js
index de840635f3..5445fb6dd2 100644
--- a/client/src/test/appShell.test.js
+++ b/client/src/test/appShell.test.js
@@ -95,8 +95,11 @@ describe('self-hosted webfonts', () => {
// is the subtle regression this pins.
const declared = [...css.matchAll(/@font-face\s*\{([^}]*)\}/g)]
.map((m) => m[1])
+ // Tolerate `'Inter'`, `"Inter"` and bare `Inter` — a single-quote-only
+ // match would read a reformatted-but-correct block as family `undefined`
+ // and fail with a missing weight instead of the real problem.
.map((block) => ({
- family: block.match(/font-family:\s*'([^']+)'/)?.[1],
+ family: block.match(/font-family:\s*['"]?([^'";]+)['"]?/)?.[1]?.trim(),
weight: Number(block.match(/font-weight:\s*(\d+)/)?.[1]),
}))
.filter((d) => d.family === 'Inter' || d.family === 'IBM Plex Mono');