mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11:25 +00:00
test(search): add unit tests
This commit is contained in:
parent
942e6f670b
commit
e876553790
5 changed files with 130 additions and 21 deletions
17
tests/Search/Search.test.svelte
Normal file
17
tests/Search/Search.test.svelte
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script lang="ts">
|
||||
import { Search } from "carbon-components-svelte";
|
||||
|
||||
let value = "";
|
||||
</script>
|
||||
|
||||
<Search
|
||||
bind:value
|
||||
labelText="Default search"
|
||||
placeholder="Search"
|
||||
closeButtonLabelText="Clear value"
|
||||
on:clear={() => {
|
||||
console.log("clear");
|
||||
}}
|
||||
/>
|
||||
|
||||
<Search disabled labelText="Disabled search" placeholder="Search disabled..." />
|
Loading…
Add table
Add a link
Reference in a new issue