Add a Async Select that fetches options from given endpoint (#1909)

* Add a Async Select that fetches options from given endpoint

* update it statement
This commit is contained in:
vera-liu
2017-01-11 10:31:30 -08:00
committed by GitHub
parent 94d20168da
commit f0917c62f2
6 changed files with 112 additions and 106 deletions

View File

@@ -18,14 +18,8 @@ describe('QuerySearch', () => {
});
const wrapper = shallow(<QuerySearch {...mockedProps} />);
it('should have four Select', () => {
expect(wrapper.find(Select)).to.have.length(4);
});
it('updates userId on user selects change', () => {
wrapper.find('[name="select-user"]')
.simulate('change', { value: 1 });
expect(wrapper.state().userId).to.equal(1);
it('should have three Select', () => {
expect(wrapper.find(Select)).to.have.length(3);
});
it('updates fromTime on user selects from time', () => {