import React from 'react';
import { cleanup } from '@testing-library/react';
import { render } from '../../utils/theme-render-wrapper';
import { TextWithIndicator } from './text-with-indicator';

afterEach(cleanup);

const text = 'text';

it(`Should render TextWithIndicator`, () => {
  const { queryByText } = render(
    <TextWithIndicator indicatorColor="#FFF">{text}</TextWithIndicator>
  );

  const textEl = queryByText(text);
  expect(textEl).toBeTruthy();
});
