import '@testing-library/jest-dom';
import renderer from 'react-test-renderer';
import React from 'react';

import {AppProviderComponent as AppProvider} from '../../../providers';
import {TooltipComponent as Tooltip} from './tooltip.component';

describe('Tooltip Component', () => {
    it('Render without crash and correctly', () => {
        const tree = renderer.create(
            <AppProvider>
                <Tooltip title='Test' description='Test 2'>
                    <button>Bring Your Mouse Here</button>
                </Tooltip>
            </AppProvider>,
        );
        expect(tree).toMatchSnapshot();
    });
});
