import { describe, it, expect } from "vitest"; import { AGENT_ROLES } from "@paperclipai/shared"; import { agentRoleColors, agentRoleColorDefault } from "./agent-role-colors"; describe("agentRoleColors", () => { it("has an entry for every AGENT_ROLES value", () => { for (const role of AGENT_ROLES) { expect(agentRoleColors[role]).toBeDefined(); expect(agentRoleColors[role]).toContain("text-"); } }); it("each entry has both light and dark variant", () => { for (const role of AGENT_ROLES) { expect(agentRoleColors[role]).toContain("dark:"); } }); it("exports a default fallback color", () => { expect(agentRoleColorDefault).toBe("text-muted-foreground"); }); it("all 11 roles have distinct color classes", () => { const colors = Object.values(agentRoleColors); const unique = new Set(colors); expect(unique.size).toBe(colors.length); }); });