add a test

This commit is contained in:
Yanick Champoux 2023-05-11 16:22:27 -04:00
parent 87b93469b2
commit 762daa9cd6

View File

@ -0,0 +1,14 @@
import { render } from "@testing-library/svelte";
import HeavyMissile from "./index.svelte";
test("basic", () => {
const { queryByText } = render(HeavyMissile, {
props: {
extended: true,
multiStage: false,
},
});
expect(queryByText("extended range")).toBeTruthy();
expect(queryByText("multi-stage")).toBeFalsy();
});