import React from 'react';
import { render } from '@testing-library/react';
import mockFetch from 'jest-fetch-mock';
import ExampleFetchComponent from './ExampleFetchComponent';

describe('ExampleFetchComponent', () => {
  it('should render', async () => {
    mockFetch.mockResponse(() => new Promise(() => {}));
    const rendered = render(<ExampleFetchComponent />);
    expect(await rendered.findByTestId('progress')).toBeInTheDocument();
  });
});
