import React from 'react'; import { mount } from 'enzyme'; import TreeSelect from '..'; import focusTest from '../../../tests/shared/focusTest'; describe('TreeSelect', () => { focusTest(TreeSelect); describe('showSearch', () => { it('keep default logic', () => { const single = mount(); expect(single.find('.ant-select-search__field').length).toBeFalsy(); const multiple = mount(); expect(multiple.find('.ant-select-search__field').length).toBeTruthy(); }); }); });