chore: type FilterableTable (#10073)

This commit is contained in:
Erik Ritter
2020-06-18 21:57:11 -07:00
committed by GitHub
parent a6390afb89
commit 2e76fbb7e5
4 changed files with 180 additions and 63 deletions

View File

@@ -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';
@@ -32,7 +32,7 @@ describe('FilterableTable', () => {
],
height: 500,
};
let wrapper;
let wrapper: ReactWrapper;
beforeEach(() => {
wrapper = mount(<FilterableTable {...mockedProps} />);
});
@@ -53,11 +53,11 @@ describe('FilterableTable', () => {
(_, x) => `col_${x}`,
),
data: [
Object.assign(
{
...Array.from(Array(wideTableColumns)).map((val, x) => ({
[`col_${x}`]: x,
})),
),
},
],
height: 500,
};