mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Fix test's warnings (#2697)
* tests: adding required props to FilterableTable mockedProps * tests: adding required prop `height` to QuerySearch mockedProps * tests: adding required prop `height` to ResultSet mockedProps * tests: adding required prop `height` to SqlEditorLeftBar mockedProps * tests: fix warning in Timer component
This commit is contained in:
committed by
Maxime Beauchemin
parent
a58adc862e
commit
3cd16cf368
@@ -4,7 +4,12 @@ import { expect } from 'chai';
|
||||
import FilterableTable from '../../../../javascripts/components/FilterableTable/FilterableTable';
|
||||
|
||||
describe('FilterableTable', () => {
|
||||
const mockedProps = {
|
||||
orderedColumnKeys: [],
|
||||
data: [],
|
||||
height: 0,
|
||||
};
|
||||
it('is valid element', () => {
|
||||
expect(React.isValidElement(<FilterableTable />)).to.equal(true);
|
||||
expect(React.isValidElement(<FilterableTable {...mockedProps} />)).to.equal(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user