Skip to content

Commit

Permalink
fix: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Jul 9, 2023
1 parent 22411a1 commit d1f6ab2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { makeSvg } from "../src/components";
import { Dimensions } from "../src/dims";
import { DEFAULT_FONT_FAMILY } from "../src/utils";

export const setup = () => {
const div = document.createElement("div");
const svg = makeSvg(div);
const svg = makeSvg(div, {
svgBackgroundColor: "#FFFFFF",
fontFamily: DEFAULT_FONT_FAMILY,
});
const dims = new Dimensions(800, 550);

return { svg, dims };
Expand Down

0 comments on commit d1f6ab2

Please sign in to comment.