import axe from '../../../../axe-helper';
import React from 'react';
import { render } from '@testing-library/react';
import { getGlobalStyleTags } from '../../../helpers/test/styles';
import Tooltip from './Tooltip';
describe('', () => {
it('renders the component with no a11y violations', async () => {
const { container } = render(
💁🏻♂️
,
);
expect(container.firstChild).toMatchSnapshot();
const results = await axe(container.innerHTML);
expect(results).toHaveNoViolations();
});
it('allows to set global styles', () => {
render();
const [globalModalStyles] = getGlobalStyleTags();
expect(globalModalStyles).toMatchSnapshot();
});
});