// @flow
import React from 'react';
import { render, cleanup, queryByText } from 'react-testing-library';
import { ThemeProvider } from 'styled-components';
import 'jest-dom/extend-expect';
import { SelectComponent } from '../../app/components/select';
import appTheme from '../../app/theme';
afterEach(cleanup);
describe('', () => {
test('should generate snapshot correctly', () => {
const { container } = render(
,
);
expect(container).toMatchSnapshot();
});
test('should render correctly', () => {
const { queryByTestId } = render(
,
);
expect(queryByTestId('Select')).toBeInTheDocument();
});
test('should render select trigger string', () => {
const { container } = render(
,
);
expect(queryByText(container, /Select/i)).toBeInTheDocument();
});
});