UNPKG

@wonderflow/react-components

Version:

UI components from Wonderflow's Wanda design system

14 lines (13 loc) 668 B
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; import { render } from '@testing-library/react'; import { TableCell } from './table-cell'; describe('<TableCell>', () => { test('it should render properly', () => { const { container } = render(_jsx(TableCell, {})); expect(container).not.toBeNull(); }); test('it should render properly with props', () => { const { container } = render(_jsxs(_Fragment, { children: [_jsx(TableCell, { width: "100", isSorted: true }), _jsx(TableCell, { width: 100, isSorted: true, isSortedDesc: true })] })); expect(container).not.toBeNull(); }); });