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