UNPKG

@wonderflow/react-components

Version:

UI components from Wonderflow's Wanda design system

19 lines (18 loc) 846 B
import { jsx as _jsx } from "react/jsx-runtime"; import { render } from '@testing-library/react'; import { CircularProgress } from './circular-progress'; describe('<CircularProgress>', () => { test(' it should render properly', () => { const { container } = render(_jsx(CircularProgress, { value: 50 })); expect(container).not.toBeNull(); }); test(' it should render properly with value 0', () => { const { container } = render(_jsx(CircularProgress, { value: 0 })); expect(container).not.toBeNull(); }); test(' it should render percent sign', () => { const { container } = render(_jsx(CircularProgress, { value: 10, showPercentSign: true })); expect(document.querySelector('[data-circular-progress="10%"]')).toBeDefined(); expect(container).not.toBeNull(); }); });