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:
Evan Rusackas 2020-08-16 21:29:08 -07:00 committed by GitHub
parent ed9b6dbf2b
commit f868580f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 150 additions and 147 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

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

View File

@ -97,7 +97,7 @@ describe('SliceAdder', () => {
props.fetchAllSlices.restore();
});
describe('componentWillReceiveProps', () => {
describe('UNSAFE_componentWillReceiveProps', () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(<SliceAdder {...props} />);

View File

@ -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: {

View File

@ -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' },

View File

@ -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(() => {

View File

@ -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(() => {