mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: bump react-redux to 5.1.2, whittling console noise (#10602)
* chore: bump react-redux to 5.1.2 * fixing spy, and thus the breaking test. * relabeling tests to UNSAFE_componentWillReceiveProps because why not.
This commit is contained in:
@@ -79,7 +79,7 @@ describe('ExploreViewContainer', () => {
|
||||
expect(wrapper.find(ChartContainer)).toExist();
|
||||
});
|
||||
|
||||
describe('componentWillReceiveProps()', () => {
|
||||
describe('UNSAFE_componentWillReceiveProps()', () => {
|
||||
it('when controls change, should call resetControls', () => {
|
||||
expect(wrapper.instance().props.controls.viz_type.value).toBe('table');
|
||||
const resetControls = sinon.stub(
|
||||
@@ -91,7 +91,7 @@ describe('ExploreViewContainer', () => {
|
||||
'triggerQuery',
|
||||
);
|
||||
|
||||
// triggers componentWillReceiveProps
|
||||
// triggers UNSAFE_componentWillReceiveProps
|
||||
wrapper.setProps({
|
||||
controls: {
|
||||
viz_type: {
|
||||
|
||||
@@ -145,7 +145,7 @@ describe('SelectControl', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('componentWillReceiveProps', () => {
|
||||
describe('UNSAFE_componentWillReceiveProps', () => {
|
||||
it('sets state.options if props.choices has changed', () => {
|
||||
const updatedOptions = [
|
||||
{ value: 'three', label: 'three' },
|
||||
|
||||
Reference in New Issue
Block a user