import '@testing-library/jest-dom';
import renderer from 'react-test-renderer';
import {AppProviderComponent as AppProvider} from '../../../providers';
import {RadioButtonGroupComponent as RadioButtonGroup} from './radio-button-group.component';
import React from 'react';

describe('RadioButtonGroup Component', () => {
    it('Render without crash and correctly', () => {
        const tree = renderer.create(
            <AppProvider>
                <RadioButtonGroup>
                    <RadioButtonGroup.Option>1</RadioButtonGroup.Option>
                    <RadioButtonGroup.Option>2</RadioButtonGroup.Option>
                    <RadioButtonGroup.Option>3</RadioButtonGroup.Option>
                </RadioButtonGroup>
            </AppProvider>,
        );
        expect(tree).toMatchSnapshot();
    });
});
