import { describe, expect, it } from "vitest"; import { funnelChart, trendChart } from "../components/charts"; describe("accessible charts", () => { it("provides a titled SVG and complete data table for trends", () => { const html = trendChart([ { date: "2026-08-16", registrations: 12, creditsUsed: 345 }, ]); expect(html).toContain('aria-labelledby="trend-chart-title trend-chart-description"'); expect(html).toContain("