Skip to content

Commit

Permalink
update it statement
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Jan 11, 2017
1 parent a08c487 commit a2f7caf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions superset/assets/javascripts/components/AsyncSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ const propTypes = {

const defaultProps = {
placeholder: 'Select ...',
value: null,
valueRenderer: () => {},
valueRenderer: (o) => (<div>{o.label}</div>),
};

class AsyncSelect extends React.PureComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('QuerySearch', () => {
});
const wrapper = shallow(<QuerySearch {...mockedProps} />);

it('should have four Select', () => {
it('should have three Select', () => {
expect(wrapper.find(Select)).to.have.length(3);
});

Expand Down

0 comments on commit a2f7caf

Please sign in to comment.