text: import React from 'react'
  import Enzyme, { shallow } from 'enzyme'
  import Adapter from 'enzyme-adapter-react-16'
  import { GranuleResultsHeaderContainer } from '../GranuleResultsHeaderContainer'
  import GranuleResultsHeader from '../../../components/GranuleResults/GranuleResultsHeader'
  
  Enzyme.configure({ adapter: new Adapter() })
  
  function setup() {
    const props = {
      collections: {
        allIds: ['collectionId'],
        byId: {
          collectionId: {
            excludedGranuleIds: [],
            metadata: {
              mock: 'here'
            }
          }
        },
        projectIds: []
      },
      focusedCollection: 'collectionId',
      granules: {
        hits: 1
      },
      location: { value: 'location' },
      onApplyGranuleFilters: jest.fn(),
      onRemoveCollectionFromProject: jest.fn(),
      onUndoExcludeGranule: jest.fn(),
      collectionSearch: {},
      onToggleAboutCwicModal: jest.fn(),
      onToggleSecondaryOverlayPanel: jest.fn(),
      secondaryOverlayPanel: {}
    }
  
    const enzymeWrapper = shallow(<GranuleResultsHeaderContainer {...props} />)
  
    return {
      enzymeWrapper,
      props
    }
  }
  
  describe('GranuleResultsHeaderContainer component', () => {
    test('passes its props and renders a single GranuleResultsHeader component', () => {
      const { enzymeWrapper } = setup()
  
      expect(enzymeWrapper.find(GranuleResultsHeader).length).toBe(1)
      expect(enzymeWrapper.find(GranuleResultsHeader).props().focusedCollectionObject).toEqual({
        excludedGranuleIds: [],
        metadata: { mock: 'here' }
      })
      expect(enzymeWrapper.find(GranuleResultsHeader).props().location).toEqual({ value: 'location' })
      expect(typeof enzymeWrapper.find(GranuleResultsHeader).props().onApplyGranuleFilters).toEqual('function')
    })
  })
  