import CheckingModal from '@components/CheckingModal';
import React from 'react';
import renderer from 'react-test-renderer';
import {shallow} from 'enzyme';

describe('Sholud test CheckingModal screen', () => {
  test('renders correctly CheckingModal', () => {
    const tree = renderer
      .create(<CheckingModal description="test description" title="Random" />)
      .toJSON();
    expect(tree).toMatchSnapshot();
  });
  test('Check overlay is defined', () => {
    const wrapper = shallow(
      <CheckingModal description="test description" title="Random" />,
    );
    let value = wrapper.find({testID: 'testCheckingOverlay'});
    expect(value).toBeDefined();
  });
});
