mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04: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:
parent
ed9b6dbf2b
commit
f868580f64
276
superset-frontend/package-lock.json
generated
276
superset-frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -166,7 +166,7 @@
|
||||
"react-json-tree": "^0.11.2",
|
||||
"react-jsonschema-form": "^1.2.0",
|
||||
"react-markdown": "^4.3.1",
|
||||
"react-redux": "^5.0.2",
|
||||
"react-redux": "^5.1.2",
|
||||
"react-router-dom": "^5.1.2",
|
||||
"react-search-input": "^0.11.3",
|
||||
"react-select": "^3.1.0",
|
||||
|
@ -73,7 +73,7 @@ describe('Dashboard', () => {
|
||||
expect(wrapper.find(DashboardBuilder)).toExist();
|
||||
});
|
||||
|
||||
describe('componentWillReceiveProps', () => {
|
||||
describe('UNSAFE_componentWillReceiveProps', () => {
|
||||
const layoutWithExtraChart = {
|
||||
...props.layout,
|
||||
1001: newComponentFactory(CHART_TYPE, { chartId: 1001 }),
|
||||
|
@ -97,7 +97,7 @@ describe('SliceAdder', () => {
|
||||
props.fetchAllSlices.restore();
|
||||
});
|
||||
|
||||
describe('componentWillReceiveProps', () => {
|
||||
describe('UNSAFE_componentWillReceiveProps', () => {
|
||||
let wrapper;
|
||||
beforeEach(() => {
|
||||
wrapper = shallow(<SliceAdder {...props} />);
|
||||
|
@ -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' },
|
||||
|
@ -75,7 +75,7 @@ describe('ResultSet', () => {
|
||||
const wrapper = shallow(<ResultSet {...mockedProps} />);
|
||||
expect(wrapper.find(FilterableTable)).toExist();
|
||||
});
|
||||
describe('componentWillReceiveProps', () => {
|
||||
describe('UNSAFE_componentWillReceiveProps', () => {
|
||||
const wrapper = shallow(<ResultSet {...mockedProps} />);
|
||||
let spy;
|
||||
beforeEach(() => {
|
||||
|
@ -138,11 +138,14 @@ describe('TabbedSqlEditors', () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
describe('componentWillReceiveProps', () => {
|
||||
describe('UNSAFE_componentWillReceiveProps', () => {
|
||||
let spy;
|
||||
beforeEach(() => {
|
||||
wrapper = getWrapper();
|
||||
spy = sinon.spy(TabbedSqlEditors.prototype, 'componentWillReceiveProps');
|
||||
spy = sinon.spy(
|
||||
TabbedSqlEditors.prototype,
|
||||
'UNSAFE_componentWillReceiveProps',
|
||||
);
|
||||
wrapper.setProps({ queryEditors, queries, tabHistory, tables });
|
||||
});
|
||||
afterEach(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user