import { describe, expect, it } from "vitest"; import { getToolcraftFiniteArtboardRect } from "./canvas-world-geometry"; describe("getToolcraftFiniteArtboardRect", () => { it("centers a finite canvas on the world origin", () => { expect( getToolcraftFiniteArtboardRect({ height: 200, unit: "px", width: 300, }), ).toEqual({ height: 200, width: 300, x: -150, y: -100 }); }); });