@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
19 lines (18 loc) • 1.06 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { render } from '@testing-library/react';
import { Button } from '../button';
import { InfoState } from './info-state';
describe('<InfoState>', () => {
test(' it should render properly', () => {
const { container } = render(_jsx(InfoState, { title: "My title", icon: "compass", children: "Content" }));
expect(container).not.toBeNull();
});
test(' it should render properly with props', () => {
const { container } = render(_jsx(InfoState, { title: "My title", direction: "column", image: "https://svgshare.com/i/b5f.svg", actions: _jsx(Button, { children: "Click" }), children: "Content" }));
expect(container).not.toBeNull();
});
test(' it should render properly with image row', () => {
const { container } = render(_jsx(InfoState, { title: "My title", direction: "row", image: "https://svgshare.com/i/b5f.svg", actions: _jsx(Button, { children: "Click" }), children: "Content" }));
expect(container).not.toBeNull();
});
});