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

13 lines
419 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";
2023-04-28 16:05:17 +00:00
import printComp from "./printComps.js";
2023-04-28 15:18:31 +00:00
describe("all weapons have a print component", () => {
2023-04-28 16:05:17 +00:00
test.each(weaponTypes)("$type", ({ type, initial }) => {
expect(printComp).toHaveProperty(type);
render(printComp[type], { props: initial });
});
2023-04-28 15:18:31 +00:00
});