import * as React from 'react'; import render from '../../_utils/tests/render'; import RadioGroup from '../RadioGroup'; it('renders correctly for a basic RadioGroup', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a disabled RadioGroup', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a disabled RadioGroup option', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); describe('states', () => { ['danger', 'success', 'warning', 'primary'].forEach(state => { it(`renders correctly for an RadioGroup with state ${state}`, () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); }); });