Skip to content

Commit

Permalink
chore: type FilterableTable (#10073)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Ritter authored Jun 19, 2020
1 parent a6390af commit 2e76fbb
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 63 deletions.
26 changes: 26 additions & 0 deletions superset-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@
"@superset-ui/translation": "^0.13.27",
"@superset-ui/validator": "^0.13.27",
"@types/classnames": "^2.2.9",
"@types/enzyme": "^3.10.5",
"@types/react-bootstrap": "^0.32.21",
"@types/react-json-tree": "^0.6.11",
"@types/react-select": "^3.0.12",
"@types/react-virtualized": "^9.21.10",
"@types/react-window": "^1.8.2",
"@types/redux-localstorage": "^1.0.8",
"@types/rison": "0.0.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import React from 'react';
import { mount } from 'enzyme';
import { mount, ReactWrapper } from 'enzyme';
import FilterableTable, {
MAX_COLUMNS_FOR_TABLE,
} from 'src/components/FilterableTable/FilterableTable';
Expand All @@ -32,7 +32,7 @@ describe('FilterableTable', () => {
],
height: 500,
};
let wrapper;
let wrapper: ReactWrapper;
beforeEach(() => {
wrapper = mount(<FilterableTable {...mockedProps} />);
});
Expand All @@ -53,11 +53,11 @@ describe('FilterableTable', () => {
(_, x) => `col_${x}`,
),
data: [
Object.assign(
{
...Array.from(Array(wideTableColumns)).map((val, x) => ({
[`col_${x}`]: x,
})),
),
},
],
height: 500,
};
Expand Down
Loading

0 comments on commit 2e76fbb

Please sign in to comment.