it('Test API Rejection', () => {
const myMockFunc = fetch.mockImplementationOnce(() => Promise.reject('error'));
setTimeout( () => myMockFunc().catch(e => {
- console.log(e);
+ console.info(e);
}),
100
);
expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
handleClose.mockClear();
});
- });
\ No newline at end of file
+ });