Fix unhandled promise rejections in tests.

This commit is contained in:
Martin Maroši 2021-10-12 14:40:51 +02:00 committed by Sanne Raymaekers
parent 990b269068
commit 7c16c6c3d0
2 changed files with 14 additions and 0 deletions

View file

@ -7,6 +7,13 @@ import ImageLink from '../../../Components/ImagesTable/ImageLink';
import Upload from '../../../Components/ImagesTable/Upload';
import '@testing-library/jest-dom';
jest.mock('../../../store/actions/actions', () => {
return {
composesGet: () => ({ type: 'foo' }),
composeGetStatus: () => ({ type: 'bar' })
};
});
const store = {
composes: {
errors: null,