import { render } from '../../../utils/theme-render-wrapper';
import { Radio } from './radio';

describe('<Radio />', () => {
  it('should render successfully', () => {
    const { container } = render(<Radio formControlLabelProps={{ label: '' }} />);
    expect(container).toBeTruthy();
  });

  it('should render Radio with label', () => {
    const { queryByTestId } = render(<Radio formControlLabelProps={{ label: 'test' }} />);
    const labelText = 'test';
    expect(queryByTestId('radioFormWrapper')?.textContent).toBe(labelText);
  });
});
