// @flow import React from 'react'; import { render, cleanup } from 'react-testing-library'; import { ThemeProvider } from 'styled-components'; import 'jest-dom/extend-expect'; import { Clipboard } from '../../app/components/clipboard'; import appTheme from '../../app/theme'; afterEach(cleanup); describe('', () => { test('should render clipboard component correctly', () => { const { queryByTestId } = render( , ); expect(queryByTestId('Clipboard')).toBeInTheDocument(); }); test('should render clipboard button correctly', () => { const { queryByTestId } = render( , ); expect(queryByTestId('PrimaryButton')).toBeInTheDocument(); }); });