mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41: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
17
tests/Theme/ThemeToggleCustom.test.svelte
Normal file
17
tests/Theme/ThemeToggleCustom.test.svelte
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script lang="ts">
|
||||
import { Theme } from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<Theme
|
||||
render="toggle"
|
||||
toggle={{
|
||||
themes: ["g10", "g80"],
|
||||
labelA: "Enable dark mode",
|
||||
labelB: "Enable dark mode",
|
||||
hideLabel: true,
|
||||
size: "sm",
|
||||
}}
|
||||
on:update={({ detail }) => {
|
||||
console.log("update", detail);
|
||||
}}
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue