mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
test(theme): add unit tests
This commit is contained in:
parent
5df515a052
commit
c8fc792851
7 changed files with 243 additions and 24 deletions
15
tests/Theme/ThemeSelectCustom.test.svelte
Normal file
15
tests/Theme/ThemeSelectCustom.test.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script lang="ts">
|
||||
import { Theme } from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<Theme
|
||||
render="select"
|
||||
select={{
|
||||
themes: ["white", "g90", "g100"],
|
||||
labelText: "Select a theme",
|
||||
inline: true,
|
||||
}}
|
||||
on:update={({ detail }) => {
|
||||
console.log("update", detail);
|
||||
}}
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue