UNPKG

@wonderflow/react-components

Version:

UI components from Wonderflow's Wanda design system

18 lines (17 loc) 816 B
import { jsx as _jsx } from "react/jsx-runtime"; import { render } from '@testing-library/react'; import { LinearProgress } from './linear-progress'; describe('<LinearProgress>', () => { test(' it should render properly', () => { const { container } = render(_jsx(LinearProgress, {})); expect(container).not.toBeNull(); }); test(' it should render properly with pros', () => { const { container } = render(_jsx(LinearProgress, { value: 50, max: 99, dimension: "big", showProgress: true })); expect(container).not.toBeNull(); }); test(' it should render properly with value 0', () => { const { container } = render(_jsx(LinearProgress, { value: 0, max: 99, dimension: "regular", showProgress: true })); expect(container).not.toBeNull(); }); });