import React from 'react'
import { shallow, configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import configureStore from 'redux-mock-store'

import { getUser } from 'redux/selectors'
import ProjectCollaborators, { AddProjectCollaboratorButton } from './ProjectCollaborators'
import { STATE_WITH_2_FAMILIES } from '../fixtures'

configure({ adapter: new Adapter() })

test('shallow-render without crashing', () => {
  const store = configureStore()(STATE_WITH_2_FAMILIES)
  shallow(<ProjectCollaborators store={store} />)
})

test('shallow-render button without crashing', () => {
  const store = configureStore()(STATE_WITH_2_FAMILIES)
  shallow(<AddProjectCollaboratorButton store={store} />)
})

import React from 'react'
import { shallow, configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import configureStore from 'redux-mock-store'

import { getUser } from 'redux/selectors'
import ProjectCollaborators from './ProjectCollaborators'
import { STATE_WITH_2_FAMILIES } from '../fixtures'

configure({ adapter: new Adapter() })

test('shallow-render without crashing', () => {
  const store = configureStore()(STATE_WITH_2_FAMILIES)
  shallow(<ProjectCollaborators store={store} />)
})

fix unti test