import { describe, expect, it } from "vitest"; import { isEnforceableHtmlEquivalent } from "./raw-html-canonical.js"; describe("isEnforceableHtmlEquivalent — library-agnostic enforcement gate", () => { it("always enforces low-frequency semantic tags for any canonical name", () => { // Agnostic already: a custom-named component on a semantic tag. expect(isEnforceableHtmlEquivalent({ tag: "textarea", canonical: "AcmeTextArea" })).toBe(true); expect(isEnforceableHtmlEquivalent({ tag: "dialog", canonical: "Modal" })).toBe(true); }); it("enforces an EXPLICITLY-declared button mapping against ANY component name (agnostic)", () => { // The fix: @acme/ui's differently-named canonical button now fires on a raw //