rootReducer(undefined, {} as any) --> rootState
This commit is contained in:
@@ -5,12 +5,11 @@ import { Provider } from 'react-redux';
|
||||
import '@testing-library/jest-dom';
|
||||
|
||||
import { MODAL_OPEN } from 'soapbox/actions/modals';
|
||||
import { mockStore } from 'soapbox/jest/test-helpers';
|
||||
import rootReducer from 'soapbox/reducers';
|
||||
import { mockStore, rootState } from 'soapbox/jest/test-helpers';
|
||||
|
||||
import ComposeButton from '../compose-button';
|
||||
|
||||
const store = mockStore(rootReducer(undefined, {} as any));
|
||||
const store = mockStore(rootState);
|
||||
const renderComposeButton = () => {
|
||||
render(
|
||||
<Provider store={store}>
|
||||
|
||||
Reference in New Issue
Block a user