Fix unhandled promise rejections in tests.
This commit is contained in:
parent
990b269068
commit
7c16c6c3d0
2 changed files with 14 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue