test(toast-notification): add unit tests

This commit is contained in:
Eric Liu 2025-03-20 12:27:37 -07:00
commit 7c436bd747
5 changed files with 214 additions and 38 deletions

View 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);
}}
/>