import React from 'react';
import { HashRouter } from 'react-router-dom';
import { render } from '@testing-library/react';

import ConfirmDeleteForm from './ConfirmDeleteForm';

describe('ConfirmDeleteForm', () => {
  it('Renders without error', () => {
    render(
      <HashRouter>
        <ConfirmDeleteForm form="foo" />
      </HashRouter>
    );
  });

  it('has matching snapshot', () => {
    const renderResult = render(
      <HashRouter>
        <ConfirmDeleteForm form="foo" />
      </HashRouter>
    );
    expect(renderResult.asFragment()).toMatchSnapshot();
  });
});
