aotds-docks/src/routes/(editor)/export/print/PrintShip/Weapons/index.test.js

13 lines
419 B
JavaScript

import { render, fireEvent } from "@testing-library/svelte";
import "@testing-library/jest-dom";
import { weaponTypes } from "$lib/store/ship/weaponry/rules";
import printComp from "./printComps.js";
describe("all weapons have a print component", () => {
test.each(weaponTypes)("$type", ({ type, initial }) => {
expect(printComp).toHaveProperty(type);
render(printComp[type], { props: initial });
});
});