~james/core

core/avatar/src/gradient.test.js -rw-r--r-- 301 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
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);
  });
});