mirror of
https://github.com/apache/superset.git
synced 2026-04-14 13:44:46 +00:00
Enable anchor-has-content rule (#10908)
This commit is contained in:
committed by
GitHub
parent
2a5946d117
commit
281305e0cf
@@ -22,11 +22,13 @@ import ControlSetRow from 'src/explore/components/ControlRow';
|
||||
|
||||
describe('ControlSetRow', () => {
|
||||
it('renders a single row with one element', () => {
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
const wrapper = shallow(<ControlSetRow controls={[<a />]} />);
|
||||
expect(wrapper.find('.row')).toExist();
|
||||
expect(wrapper.find('.row').find('a')).toExist();
|
||||
});
|
||||
it('renders a single row with two elements', () => {
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
const wrapper = shallow(<ControlSetRow controls={[<a />, <a />]} />);
|
||||
expect(wrapper.find('.row')).toExist();
|
||||
expect(wrapper.find('.row').find('a')).toHaveLength(2);
|
||||
|
||||
Reference in New Issue
Block a user