import type { SVGAttributes } from "../../types.js";
import { overrideSvgAttributes } from "./overrideSvgAttributes.js";
import fc from "fast-check";
import { parse } from "ultrahtml";
import { bench, describe, expect } from "vitest";
const svgArbitrary = fc
.record({
start: fc.mixedCase(fc.constantFrom("")),
})
.map(({ start, middle, end }) => `${start}${middle}${end}`);
const SVGAttributesArbitrary = fc.record({
height: fc.option(fc.integer()),
width: fc.option(fc.integer()),
"aria-hidden": fc.option(fc.boolean()),
"aria-label": fc.option(fc.string()),
viewBox: fc.option(fc.string()),
fill: fc.option(fc.string()),
xmlns: fc.option(fc.string()),
});
describe("overrideSvgAtrributes", () => {
bench("should return the same output if no overrides are given", async () => {
expect(await overrideSvgAttributes("")).toBe("");
expect(await overrideSvgAttributes("