import { describe, expect, test } from "bun:test";
import { renderToStaticMarkup } from "react-dom/server";
import { DisabledReason } from "./disabled-reason";
import { ErrorMessage } from "./error-message";
import { InlineHelp } from "./inline-help";
import { sparklinePoints, StatTile } from "./stat-tile";
describe("DisabledReason", () => {
test("keeps the control focusable and links the reason", () => {
const html = renderToStaticMarkup(
,
);
expect(html).toContain('aria-disabled="true"');
expect(html).not.toMatch(/