Add initial batch of Dialog tests

This commit is contained in:
Ryan Gossiaux
2021-12-26 11:50:26 -08:00
parent 39dda7eb76
commit 10f2eab08d
6 changed files with 431 additions and 9 deletions

View File

@@ -3,9 +3,14 @@
// This component is only for use in tests
export let initialChecked = false;
export let onChange = () => {};
let state = initialChecked;
</script>
<Switch checked={state} on:change={(e) => (state = e.detail)} on:change>
<Switch
checked={state}
on:change={(e) => (state = e.detail)}
on:change={onChange}
>
<slot />
</Switch>