add a test
This commit is contained in:
parent
87b93469b2
commit
762daa9cd6
@ -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();
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user