it('handles onType', () => {

      const onType = spy()
      const searchbox = shallow(<Searchbox onType={ onType } />)
      searchbox.childAt(1).childAt(0).childAt(0).simulate('change', { target: { value: 'foo' } })