@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
14 lines (13 loc) • 948 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { render } from '@testing-library/react';
import { List } from './list';
describe('<List>', () => {
test(' it should render properly', () => {
const { container } = render(_jsxs(List, { children: [_jsx(List.Li, { marker: "circle-check", markerColor: "var(--highlight-green-foreground)", children: "List item text" }), _jsx(List.Li, { dimension: "small", children: "List item text no props" })] }));
expect(container).not.toBeNull();
});
test(' it should render properly with no marker as "ol"', () => {
const { container } = render(_jsxs(List, { hideMarker: true, as: "ol", children: [_jsx(List.Li, { marker: "circle-check", markerColor: "var(--highlight-green-foreground)", children: "List item text" }), _jsx(List.Li, { dimension: "small", children: "List item text no props" })] }));
expect(container).not.toBeNull();
});
});