checkbox.spec.tsx 370 B

123456789101112
  1. import {render, screen} from 'sentry-test/reactTestingLibrary';
  2. import Checkbox from 'sentry/components/checkbox';
  3. describe('Checkbox', function () {
  4. it('renders', async function () {
  5. const {container} = render(<Checkbox onChange={() => {}} />);
  6. expect(await screen.findByRole('checkbox')).toBeInTheDocument();
  7. expect(container).toSnapshot();
  8. });
  9. });