File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
import { render, cleanup } from '@testing-library/react';
import { globalParams } from './mockData';
import { SelectDates } from '../';
describe( 'submissions-select-dates', () => {
afterEach( cleanup );
it( 'Matches snapshot', () => {
const dateFormat = globalParams.dateFormat;
const timeFormat = globalParams.timeFormat;
const setDates = jest.fn();
const { container } = render(
<SelectDates
setDates={ setDates }
dateFormat={ dateFormat }
timeFormat={ timeFormat }
/>
);
expect( container ).toMatchSnapshot();
} );
} );
