mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Prettify the frontend code (#8648)
* Add Prettier global configs * Format js/jsx/ts/tsx/less files
This commit is contained in:
@@ -102,13 +102,16 @@ describe('ResultSet', () => {
|
||||
wrapper.setProps({ query: emptyResults });
|
||||
expect(wrapper.find(FilterableTable)).toHaveLength(0);
|
||||
expect(wrapper.find(Alert)).toHaveLength(1);
|
||||
expect(wrapper.find(Alert).shallow().text()).toBe('The query returned no data');
|
||||
expect(
|
||||
wrapper
|
||||
.find(Alert)
|
||||
.shallow()
|
||||
.text(),
|
||||
).toBe('The query returned no data');
|
||||
});
|
||||
it('should render cached query', () => {
|
||||
const wrapper = shallow(<ResultSet {...cachedQueryProps} />);
|
||||
const cachedData = [
|
||||
{ col1: 'a', col2: 'b' },
|
||||
];
|
||||
const cachedData = [{ col1: 'a', col2: 'b' }];
|
||||
wrapper.setState({ data: cachedData });
|
||||
const filterableTable = wrapper.find(FilterableTable);
|
||||
expect(filterableTable.props().data).toBe(cachedData);
|
||||
|
||||
Reference in New Issue
Block a user