mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
test(toast-notification): add unit tests
This commit is contained in:
parent
7317192e90
commit
7c436bd747
5 changed files with 214 additions and 38 deletions
13
tests/ToastNotification/ToastNotification.close.test.svelte
Normal file
13
tests/ToastNotification/ToastNotification.close.test.svelte
Normal file
|
@ -0,0 +1,13 @@
|
|||
<script lang="ts">
|
||||
import { ToastNotification } from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<ToastNotification
|
||||
title="Custom"
|
||||
subtitle="Message"
|
||||
caption="2024-03-21 12:00:00"
|
||||
on:close={(e) => {
|
||||
e.preventDefault();
|
||||
console.log("close", e.detail);
|
||||
}}
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue