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