|
|
10e60d66cb
|
test(canvas): add pure-function tests for deriveWsBaseUrl, statusDotClass, and readThemeCookie
sop-tier-check / tier-check (pull_request) Failing after 4s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
audit-force-merge / audit (pull_request) Successful in 6s
- ws-url.test.ts: deriveWsBaseUrl — all 4 priority paths tested:
NEXT_PUBLIC_WS_URL (strips /ws suffix), NEXT_PUBLIC_PLATFORM_URL
(http→ws, https→wss), window.location (https→wss, http→ws),
precedence over lower-priority paths.
- statusDotClass.test.ts: all STATUS_CONFIG entries (online/offline/paused/
degraded/failed/provisioning/not_configured), fallback to bg-zinc-500,
case-sensitivity, purity.
- theme-cookie.test.ts: readThemeCookie — valid values (light/dark/system),
undefined/empty fallback, invalid value handling, case-sensitivity,
purity.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-10 04:46:35 +00:00 |
|