tweak tests

This commit is contained in:
Yanick Champoux 2023-04-22 11:04:48 -04:00
parent 4a69641120
commit 73b771fb78
3 changed files with 10 additions and 4 deletions

View File

@ -13,6 +13,12 @@ tasks:
cmds:
- vitest src
test:update:
deps:
- histoire:build
cmds:
- vitest run -u src
check:
deps:
- histoire:build

View File

@ -5,6 +5,6 @@ import { tick } from "svelte";
import Identification from "./Identification.svelte";
test("carrier", () => {
const { getByLabelText } = render(Identification);
expect(getByLabelText("carrier")).toBeInTheDocument();
const { getByText } = render(Identification);
expect(getByText("carrier")).toBeInTheDocument();
});

View File

@ -1,5 +1,5 @@
<Hst.Story>
<Propulsion {api} />
<Hst.Story title="ShipEdit/Propulsion/index">
<Propulsion />
</Hst.Story>
<script>