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:
@@ -24,15 +24,12 @@ import { mount } from 'enzyme';
|
||||
import { user } from './fixtures';
|
||||
import UserInfo from '../../../src/profile/components/UserInfo';
|
||||
|
||||
|
||||
describe('UserInfo', () => {
|
||||
const mockedProps = {
|
||||
user,
|
||||
};
|
||||
it('is valid', () => {
|
||||
expect(
|
||||
React.isValidElement(<UserInfo {...mockedProps} />),
|
||||
).toBe(true);
|
||||
expect(React.isValidElement(<UserInfo {...mockedProps} />)).toBe(true);
|
||||
});
|
||||
it('renders a Gravatar', () => {
|
||||
const wrapper = mount(<UserInfo {...mockedProps} />);
|
||||
|
||||
Reference in New Issue
Block a user