mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
Prettify the frontend code (#8648)
* Add Prettier global configs * Format js/jsx/ts/tsx/less files
This commit is contained in:
@@ -31,14 +31,23 @@ describe('QueryTable', () => {
|
||||
expect(React.isValidElement(<QueryTable />)).toBe(true);
|
||||
});
|
||||
it('is valid with props', () => {
|
||||
expect(
|
||||
React.isValidElement(<QueryTable {...mockedProps} />),
|
||||
).toBe(true);
|
||||
expect(React.isValidElement(<QueryTable {...mockedProps} />)).toBe(true);
|
||||
});
|
||||
it('renders a proper table', () => {
|
||||
const wrapper = shallow(<QueryTable {...mockedProps} />);
|
||||
expect(wrapper.find(Table)).toHaveLength(1);
|
||||
expect(wrapper.find(Table).shallow().find('table')).toHaveLength(1);
|
||||
expect(wrapper.find(Table).shallow().find('table').find('Tr')).toHaveLength(2);
|
||||
expect(
|
||||
wrapper
|
||||
.find(Table)
|
||||
.shallow()
|
||||
.find('table'),
|
||||
).toHaveLength(1);
|
||||
expect(
|
||||
wrapper
|
||||
.find(Table)
|
||||
.shallow()
|
||||
.find('table')
|
||||
.find('Tr'),
|
||||
).toHaveLength(2);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user