test(content-switcher): add unit tests

This commit is contained in:
Eric Liu 2025-02-26 19:45:15 -08:00
commit 67df81eac9
7 changed files with 219 additions and 15 deletions

View file

@ -0,0 +1,10 @@
<script lang="ts">
import { ContentSwitcher, Switch } from "carbon-components-svelte";
</script>
<ContentSwitcher>
<Switch>
<div data-testid="custom-content">Custom Content</div>
</Switch>
<Switch text="Regular Text" />
</ContentSwitcher>