import { render } from '../../../utils/theme-render-wrapper'; import { Checkbox } from './checkbox'; describe('', () => { it('should render successfully', () => { const { baseElement } = render( ); expect(baseElement).toBeTruthy(); }); it('should render checkbox with label', () => { const labelText = 'test'; const { queryByTestId } = render( ); expect(queryByTestId('checkboxFormWrapper')?.textContent).toBe(labelText); }); it(`should render without label`, () => { const { baseElement } = render(); expect(baseElement).toBeTruthy(); }); });