mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
test(skeleton-placeholder): add unit tests
This commit is contained in:
parent
887b03797a
commit
e5ab55858f
3 changed files with 78 additions and 7 deletions
20
tests/SkeletonPlaceholder/SkeletonPlaceholder.test.svelte
Normal file
20
tests/SkeletonPlaceholder/SkeletonPlaceholder.test.svelte
Normal file
|
@ -0,0 +1,20 @@
|
|||
<script lang="ts">
|
||||
import { SkeletonPlaceholder } from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<SkeletonPlaceholder
|
||||
data-testid="skeleton-placeholder"
|
||||
{...$$props}
|
||||
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