import { describe, expect, it } from "vitest"; import { gradientSvg } from "./gradient.js"; import gold from "./gradient.gold.json"; describe("gradientSvg", () => { it.each(Object.entries(gold))("draws the same svg for %s", (actor, svg) => { expect(gradientSvg(actor, 64)).toBe(svg); }); });