mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
test(checkbox): add unit tests
This commit is contained in:
parent
1ba777ade8
commit
ca4a12164d
6 changed files with 197 additions and 15 deletions
28
tests/Checkbox/Checkbox.group.test.svelte
Normal file
28
tests/Checkbox/Checkbox.group.test.svelte
Normal file
|
@ -0,0 +1,28 @@
|
|||
<script lang="ts">
|
||||
import { Checkbox } from "carbon-components-svelte";
|
||||
|
||||
export let group = ["option-2"];
|
||||
|
||||
$: console.log(group);
|
||||
</script>
|
||||
|
||||
<Checkbox
|
||||
bind:group
|
||||
value="option-1"
|
||||
labelText="Option 1"
|
||||
data-testid="checkbox-1"
|
||||
/>
|
||||
|
||||
<Checkbox
|
||||
bind:group
|
||||
value="option-2"
|
||||
labelText="Option 2"
|
||||
data-testid="checkbox-2"
|
||||
/>
|
||||
|
||||
<Checkbox
|
||||
bind:group
|
||||
value="option-3"
|
||||
labelText="Option 3"
|
||||
data-testid="checkbox-3"
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue