mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
test(multi-select): more unit tests
This commit is contained in:
parent
5e8c8b983c
commit
8ab77c99e2
4 changed files with 328 additions and 360 deletions
12
tests/MultiSelect/MultiSelectSlot.test.svelte
Normal file
12
tests/MultiSelect/MultiSelectSlot.test.svelte
Normal file
|
@ -0,0 +1,12 @@
|
|||
<script lang="ts">
|
||||
import { MultiSelect } from "carbon-components-svelte";
|
||||
import type { ComponentProps } from "svelte";
|
||||
|
||||
export let items: ComponentProps<MultiSelect>["items"] = [];
|
||||
</script>
|
||||
|
||||
<MultiSelect {items} let:item let:index>
|
||||
<div>
|
||||
<strong>{item.id} {item.text} {index}</strong>
|
||||
</div>
|
||||
</MultiSelect>
|
Loading…
Add table
Add a link
Reference in a new issue