mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Prettify the frontend code (#8648)
* Add Prettier global configs * Format js/jsx/ts/tsx/less files
This commit is contained in:
@@ -31,7 +31,7 @@ describe('PopoverSection', () => {
|
||||
};
|
||||
|
||||
let wrapper;
|
||||
const factory = (overrideProps) => {
|
||||
const factory = overrideProps => {
|
||||
const props = Object.assign({}, defaultProps, overrideProps || {});
|
||||
return shallow(<PopoverSection {...props} />);
|
||||
};
|
||||
@@ -39,7 +39,9 @@ describe('PopoverSection', () => {
|
||||
wrapper = factory();
|
||||
});
|
||||
it('renders', () => {
|
||||
expect(React.isValidElement(<PopoverSection {...defaultProps} />)).toBe(true);
|
||||
expect(React.isValidElement(<PopoverSection {...defaultProps} />)).toBe(
|
||||
true,
|
||||
);
|
||||
});
|
||||
it('is show an icon when selected', () => {
|
||||
expect(wrapper.find('.fa-check')).toHaveLength(1);
|
||||
|
||||
Reference in New Issue
Block a user