mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
test(column): add unit tests
This commit is contained in:
parent
03f3920383
commit
c57c0efb73
4 changed files with 146 additions and 52 deletions
32
tests/Column/Column.test.svelte
Normal file
32
tests/Column/Column.test.svelte
Normal file
|
@ -0,0 +1,32 @@
|
|||
<script lang="ts">
|
||||
import { Column } from "carbon-components-svelte";
|
||||
import type { ComponentProps } from "svelte";
|
||||
|
||||
export let as = false;
|
||||
export let noGutter = false;
|
||||
export let noGutterLeft = false;
|
||||
export let noGutterRight = false;
|
||||
export let padding = false;
|
||||
export let aspectRatio: ComponentProps<Column>["aspectRatio"] = undefined;
|
||||
export let sm: ComponentProps<Column>["sm"] = undefined;
|
||||
export let md: ComponentProps<Column>["md"] = undefined;
|
||||
export let lg: ComponentProps<Column>["lg"] = undefined;
|
||||
export let xlg: ComponentProps<Column>["xlg"] = undefined;
|
||||
export let max: ComponentProps<Column>["max"] = undefined;
|
||||
</script>
|
||||
|
||||
<Column
|
||||
{as}
|
||||
{noGutter}
|
||||
{noGutterLeft}
|
||||
{noGutterRight}
|
||||
{padding}
|
||||
{aspectRatio}
|
||||
{sm}
|
||||
{md}
|
||||
{lg}
|
||||
{xlg}
|
||||
{max}
|
||||
>
|
||||
<div data-testid="content">Column Content</div>
|
||||
</Column>
|
Loading…
Add table
Add a link
Reference in a new issue