Fix ComposeButton tests

This commit is contained in:
Alex Gleason 2023-04-27 13:20:53 -05:00
parent 44300539d5
commit a1b9d8a682
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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>,
);