mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
refactor: Upgrade Redux (#11967)
* upgrade redux and react-redux, adjust types * first round of test fixes * fix rest of unit tests * lint Co-authored-by: Phillip Kelley-Dotson <pkelleydotson@yahoo.com>
This commit is contained in:
committed by
GitHub
parent
9121482479
commit
6270fa2026
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import { styledMount as mount } from 'spec/helpers/theming';
|
||||
import { Provider } from 'react-redux';
|
||||
import thunk from 'redux-thunk';
|
||||
import fetchMock from 'fetch-mock';
|
||||
import configureStore from 'redux-mock-store';
|
||||
@@ -69,9 +70,11 @@ describe('Welcome', () => {
|
||||
isActive: true,
|
||||
},
|
||||
};
|
||||
const wrapper = mount(<Welcome {...mockedProps} />, {
|
||||
context: { store },
|
||||
});
|
||||
const wrapper = mount(
|
||||
<Provider store={store}>
|
||||
<Welcome {...mockedProps} />
|
||||
</Provider>,
|
||||
);
|
||||
|
||||
it('renders', () => {
|
||||
expect(wrapper).toExist();
|
||||
|
||||
Reference in New Issue
Block a user