You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
554 B

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(<TreeSelect open />);
expect(single.find('.ant-select-search__field').length).toBeFalsy();
const multiple = mount(<TreeSelect multiple open />);
expect(multiple.find('.ant-select-search__field').length).toBeTruthy();
});
});
});