mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
test(structured-list): add unit tests
This commit is contained in:
parent
f89e9df8f0
commit
f5342d4b96
4 changed files with 236 additions and 100 deletions
26
tests/StructuredList/StructuredListCustom.test.svelte
Normal file
26
tests/StructuredList/StructuredListCustom.test.svelte
Normal file
|
@ -0,0 +1,26 @@
|
|||
<script lang="ts">
|
||||
import {
|
||||
StructuredList,
|
||||
StructuredListBody,
|
||||
StructuredListHead,
|
||||
StructuredListCell,
|
||||
StructuredListRow,
|
||||
} from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<StructuredList>
|
||||
<StructuredListHead>
|
||||
<StructuredListRow head>
|
||||
<StructuredListCell head>
|
||||
<div data-testid="custom-header">Custom Header</div>
|
||||
</StructuredListCell>
|
||||
</StructuredListRow>
|
||||
</StructuredListHead>
|
||||
<StructuredListBody>
|
||||
<StructuredListRow>
|
||||
<StructuredListCell>
|
||||
<div data-testid="custom-content">Custom Content</div>
|
||||
</StructuredListCell>
|
||||
</StructuredListRow>
|
||||
</StructuredListBody>
|
||||
</StructuredList>
|
Loading…
Add table
Add a link
Reference in a new issue