Added more tests covering new use cases

This commit is contained in:
Alejandro Celaya
2020-04-18 12:09:51 +02:00
parent 91488ae294
commit ed40b79c8d
4 changed files with 128 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ describe('shortUrlCreationReducer', () => {
const dispatch = jest.fn();
const getState = () => ({});
afterEach(() => dispatch.mockReset());
afterEach(jest.resetAllMocks);
it('calls API on success', async () => {
const result = 'foo';