@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
14 lines (13 loc) • 755 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { render } from '@testing-library/react';
import { Grid } from './grid';
describe('<Grid>', () => {
test(' it should render properly', () => {
const { container } = render(_jsxs(Grid, { children: [_jsx(Grid.Item, { children: "1" }), _jsx(Grid.Item, { children: "2" }), _jsx(Grid.Item, { children: "3" })] }));
expect(container).not.toBeNull();
});
test(' it should render properly with props', () => {
const { container } = render(_jsxs(Grid, { rowGap: 2, columnGap: 2, children: [_jsx(Grid.Item, { children: "1" }), _jsx(Grid.Item, { children: "2" }), _jsx(Grid.Item, { children: "3" })] }));
expect(container).not.toBeNull();
});
});