import { render } from '@toptal/picasso-test-utils' import React from 'react' import Radio from '../Radio' import { Form } from '../Form' import type { Props } from './RadioGroup' import { RadioGroup } from './RadioGroup' const arrangeTest = ({ titleCase }: Partial = {}) => render(
{}}>
) describe('RadioGroup', () => { it('shows the label in default case', () => { const { getByText } = arrangeTest() expect(getByText('Radio group label')).toBeInTheDocument() }) it('shows the label in title case', () => { const { getByText } = arrangeTest({ titleCase: true }) expect(getByText('Radio Group Label')).toBeInTheDocument() }) })