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

13 lines
430 B
JavaScript
Raw Normal View History

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