import { describe, expect, it } from "bun:test"; import { renderToStaticMarkup } from "react-dom/server"; import { DecisionCard } from "./decision"; describe("DecisionCard", () => { it("renders an accepted thread as a frozen decision", () => { let markup = renderToStaticMarkup( , ); expect(markup).toContain('article aria-label="Decision"'); expect(markup).toContain("Keep the rollout reversible."); expect(markup).toContain("@ana"); expect(markup).toContain("Use a feature flag."); expect(markup).toContain("@bo"); expect(markup).toContain("Measure rollback time."); expect(markup).toContain("Accepted by @ana"); }); });