Fix unit tests.

This commit is contained in:
kialam
2019-02-19 11:28:17 -05:00
parent da8c3f6c43
commit f9d615fdee
2 changed files with 34 additions and 13 deletions

View File

@@ -33,19 +33,6 @@ describe('<AnsibleSelect />', () => {
expect(spy).toHaveBeenCalled();
});
test('content not rendered when data property is falsey', () => {
const wrapper = mount(
<AnsibleSelect
value="foo"
name="bar"
onChange={() => { }}
label={label}
data={null}
/>
);
expect(wrapper.find('FormGroup')).toHaveLength(0);
expect(wrapper.find('Select')).toHaveLength(0);
});
test('Returns correct select options if defaultSelected props is passed', () => {
const wrapper = mount(
<AnsibleSelect