Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
883 B ยท 26 lines
TypeScript
at main
123456789101112131415161718192021222324252627import { THEME_VAR_NAMES, THEMES } from "@openstatus/theme-store";import { expect } from "@std/expect";import { describe, test } from "@std/testing/bdd";
import { generateThemePrompt, THEME_SKILL_INSTALL_COMMAND,} from "./theme-prompt";
describe("generateThemePrompt", () => { const prompt = generateThemePrompt(THEMES.dracula);
test("lists every supported variable except the rainbow range", () => { for (const name of THEME_VAR_NAMES) { if (name.startsWith("--rainbow-")) continue; expect(prompt).toContain(name); } expect(prompt).toContain("--rainbow-1 โฆ --rainbow-17"); });
test("embeds the current theme and the skill install command", () => { expect(prompt).toContain('"id": "dracula"'); expect(prompt).toContain(THEME_SKILL_INSTALL_COMMAND); expect(prompt).toContain("https://themes.openstatus.dev/?b=true"); });});