Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../src/componen.../tests
File: selectDates.test.js
import { render, cleanup } from '@testing-library/react';
[0] Fix | Delete
import { globalParams } from './mockData';
[1] Fix | Delete
import { SelectDates } from '../';
[2] Fix | Delete
[3] Fix | Delete
describe( 'submissions-select-dates', () => {
[4] Fix | Delete
afterEach( cleanup );
[5] Fix | Delete
it( 'Matches snapshot', () => {
[6] Fix | Delete
const dateFormat = globalParams.dateFormat;
[7] Fix | Delete
const timeFormat = globalParams.timeFormat;
[8] Fix | Delete
const setDates = jest.fn();
[9] Fix | Delete
[10] Fix | Delete
const { container } = render(
[11] Fix | Delete
<SelectDates
[12] Fix | Delete
setDates={ setDates }
[13] Fix | Delete
dateFormat={ dateFormat }
[14] Fix | Delete
timeFormat={ timeFormat }
[15] Fix | Delete
/>
[16] Fix | Delete
);
[17] Fix | Delete
expect( container ).toMatchSnapshot();
[18] Fix | Delete
} );
[19] Fix | Delete
} );
[20] Fix | Delete
[21] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function