import React ,{ Component }from 'react'; import {shallow, mount, render} from 'enzyme'; import {expect} from 'chai'; import ReactDom from 'react-dom'; import Select from '../src'; const Option = Select.Option; describe('Select single test', function() { it('Select should be exist', function() { let handleChange = function(value) { console.log(`selected ${value}`); }; let select = mount(); expect(select.find('.u-select').length).to.equal(1); }) it('large Select should be exist', function() { let handleChange = function(value) { console.log(`selected ${value}`); }; let select = mount(); expect(select.find('.u-select-lg').length).to.equal(1); }) it('small Select should be exist', function() { let handleChange = function(value) { console.log(`selected ${value}`); }; let select = mount(); expect(select.find('.u-select-sm').length).to.equal(1); }) it('Option Select should be exist', function() { class Demo1 extends Component { constructor() { super(); this.handleChange = this.handleChange.bind(this); } handleChange(value) { console.log(`selected ${value}`); } render(){ return(