Fix ComposeButton tests
This commit is contained in:
parent
44300539d5
commit
a1b9d8a682
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ import React from 'react';
|
|||
import { IntlProvider } from 'react-intl';
|
||||
import { Provider } from 'react-redux';
|
||||
import '@testing-library/jest-dom';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
|
||||
import { MODAL_OPEN } from 'soapbox/actions/modals';
|
||||
import { mockStore, rootState } from 'soapbox/jest/test-helpers';
|
||||
|
@ -14,7 +15,9 @@ const renderComposeButton = () => {
|
|||
render(
|
||||
<Provider store={store}>
|
||||
<IntlProvider locale='en'>
|
||||
<ComposeButton />
|
||||
<MemoryRouter>
|
||||
<ComposeButton />
|
||||
</MemoryRouter>
|
||||
</IntlProvider>
|
||||
</Provider>,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue