refactor: use rison for list view filters stateful urls (#11675)

This commit is contained in:
Moriah Kreeger
2020-11-24 11:19:48 -08:00
committed by GitHub
parent 91bcbc8350
commit 6019113bc6
11 changed files with 212 additions and 78 deletions

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import React from 'react';
import { mount, shallow } from 'enzyme';
import { styledMount as mount } from 'spec/helpers/theming';
import { act } from 'react-dom/test-utils';
import { QueryParamProvider } from 'use-query-params';
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
@@ -338,7 +338,7 @@ describe('ListView', () => {
filters: [...mockedProps.filters, { id: 'some_column' }],
};
expect(() => {
shallow(<ListView {...props} />, {
mount(<ListView {...props} />, {
wrappingComponent: ThemeProvider,
wrappingComponentProps: { theme: supersetTheme },
});