text: import React from 'react'
  import Enzyme, { shallow } from 'enzyme'
  import Adapter from 'enzyme-adapter-react-16'
  import { CollectionResultsHeaderContainer } from '../CollectionResultsHeaderContainer'
  import CollectionResultsHeader from '../../../components/CollectionResults/CollectionResultsHeader'
  
  Enzyme.configure({ adapter: new Adapter() })
  
  function setup() {
    const props = {
      collections: {},
      collectionQuery: {},
      panelView: 'table',
      onChangeQuery: jest.fn(),
      onMetricsCollectionSortChange: jest.fn(),
      onToggleAdvancedSearchModal: jest.fn(),
      onChangePanelView: jest.fn()
    }
  
    const enzymeWrapper = shallow(<CollectionResultsHeaderContainer {...props} />)
  
    return {
      enzymeWrapper,
      props
    }
  }
  
  describe('CollectionResultsHeaderContainer component', () => {
    test('passes its props and renders a single CollectionResultsHeader component', () => {
      const { enzymeWrapper, props } = setup()
      expect(enzymeWrapper.find(CollectionResultsHeader).length).toBe(1)
      expect(enzymeWrapper.find(CollectionResultsHeader).props().onToggleAdvancedSearchModal)
        .toEqual(props.onToggleAdvancedSearchModal)
      expect(enzymeWrapper.find(CollectionResultsHeader).props().onChangePanelView)
        .toEqual(props.onChangePanelView)
      expect(enzymeWrapper.find(CollectionResultsHeader).props().panelView)
        .toEqual(props.panelView)
    })
  })
  