mirror of
https://github.com/apache/superset.git
synced 2026-04-14 21:54:31 +00:00
Renaming field to control (#2210)
This commit is contained in:
committed by
GitHub
parent
d5ba88b407
commit
1e47d6fb41
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import { expect } from 'chai';
|
||||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import ControlSetRow from '../../../../javascripts/explorev2/components/ControlRow';
|
||||
|
||||
describe('ControlSetRow', () => {
|
||||
it('renders a single row with one element', () => {
|
||||
const wrapper = shallow(<ControlSetRow controls={[<a />]} />);
|
||||
expect(wrapper.find('.row')).to.have.lengthOf(1);
|
||||
expect(wrapper.find('.row').find('a')).to.have.lengthOf(1);
|
||||
});
|
||||
it('renders a single row with two elements', () => {
|
||||
const wrapper = shallow(<ControlSetRow controls={[<a />, <a />]} />);
|
||||
expect(wrapper.find('.row')).to.have.lengthOf(1);
|
||||
expect(wrapper.find('.row').find('a')).to.have.lengthOf(2);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user