Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('Should mount with valid props', () => {
fetch.mockResponseOnce(JSON.stringify(simpleRecordsExpected));
const component = shallow();
expect(component.props()).toBeDefined();
});
beforeEach(() => {
fetch.resetMocks();
fetch.mockResponseOnce(JSON.stringify(sampleResponse));
});
beforeEach(() => {
fetch.resetMocks();
fetch.mockResponseOnce(JSON.stringify(sampleResponse));
});