mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
test(skeleton-text): add unit tests
This commit is contained in:
parent
f5342d4b96
commit
a4b10500a3
3 changed files with 117 additions and 15 deletions
27
tests/SkeletonText/SkeletonText.test.svelte
Normal file
27
tests/SkeletonText/SkeletonText.test.svelte
Normal file
|
@ -0,0 +1,27 @@
|
|||
<script lang="ts">
|
||||
import { SkeletonText } from "carbon-components-svelte";
|
||||
|
||||
export let lines = 3;
|
||||
export let heading = false;
|
||||
export let paragraph = false;
|
||||
export let width = "100%";
|
||||
</script>
|
||||
|
||||
<SkeletonText
|
||||
{lines}
|
||||
{heading}
|
||||
{paragraph}
|
||||
{width}
|
||||
on:click={() => {
|
||||
console.log("click");
|
||||
}}
|
||||
on:mouseover={() => {
|
||||
console.log("mouseover");
|
||||
}}
|
||||
on:mouseenter={() => {
|
||||
console.log("mouseenter");
|
||||
}}
|
||||
on:mouseleave={() => {
|
||||
console.log("mouseleave");
|
||||
}}
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue