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

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