import React from 'react';
import { render } from '@testing-library/react';
import FormTestBase from './FormTestBase';
import StandardFormActions from '../StandardFormActions';

describe('StandardFormActions', () => {
  it('renders without crashing', () => {
    render(<FormTestBase>{() => <StandardFormActions />}</FormTestBase>);
  });

  it('has matching snapshot', () => {
    const renderResult = render(
      <FormTestBase>{() => <StandardFormActions />}</FormTestBase>
    );
    expect(renderResult.asFragment()).toMatchSnapshot();
  });
});
