Merge branch 'editor'
This commit is contained in:
commit
32ac4510b9
@ -4,6 +4,7 @@ version: "3"
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
GREETING: Hello, World!
|
GREETING: Hello, World!
|
||||||
|
PARENT_BRANCH: main
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
test:
|
test:
|
||||||
@ -31,7 +32,9 @@ tasks:
|
|||||||
deps: [check]
|
deps: [check]
|
||||||
cmds:
|
cmds:
|
||||||
- git is-clean
|
- git is-clean
|
||||||
- git checkout main
|
# did we had tests?
|
||||||
|
- git diff-ls {{.PARENT_BRANCH}} | grep test
|
||||||
|
- git checkout {{.PARENT_BRANCH}}
|
||||||
- git weld -
|
- git weld -
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
const api = getContext("api");
|
const api = getContext("api");
|
||||||
|
|
||||||
$: api.dispatch.setNbrArmorLayers(nbr_layers);
|
$: api?.dispatch.setNbrArmorLayers(nbr_layers);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
const api = getContext("api");
|
const api = getContext("api");
|
||||||
|
|
||||||
$: api.dispatch?.setHull?.(rating);
|
$: api?.dispatch?.setHull?.(rating);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
const api = getContext("api");
|
const api = getContext("api");
|
||||||
|
|
||||||
$: api.dispatch?.setScreens?.({ standard, advanced });
|
$: api?.dispatch?.setScreens?.({ standard, advanced });
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -1 +1,5 @@
|
|||||||
TODO
|
<ShipEdit />
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ShipEdit from "$lib/components/ShipEdit.svelte";
|
||||||
|
</script>
|
||||||
|
9
src/routes/page.test.js
Normal file
9
src/routes/page.test.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { render, fireEvent, screen, getByText } from "@testing-library/svelte";
|
||||||
|
import "@testing-library/jest-dom";
|
||||||
|
|
||||||
|
import Page from "./+page.svelte";
|
||||||
|
|
||||||
|
test("we have a page", () => {
|
||||||
|
const { getByText } = render(Page);
|
||||||
|
expect(getByText("propulsion")).toBeInTheDocument();
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user