statusDot.test.ts 504 B

12345678910111213
  1. import { createElement } from "react";
  2. import { renderToStaticMarkup } from "react-dom/server";
  3. import { describe, expect, it } from "vitest";
  4. import { StatusDot } from "@/settings/StatusDot.js";
  5. describe("StatusDot", () => {
  6. it("uses the secondary foreground token for subtle status", () => {
  7. const html = renderToStaticMarkup(createElement(StatusDot, { tone: "subtle" }));
  8. expect(html).toContain("text-foreground-subtle");
  9. expect(html).not.toContain("text-muted-foreground");
  10. });
  11. });