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} />)
})

@@ -229,42 +229,8 @@
 tors
-, %7B AddProjectCollaboratorButton %7D
  fro
@@ -509,177 +509,4 @@
 %0A%7D)%0A
-%0Atest('shallow-render button without crashing', () =%3E %7B%0A  const store = configureStore()(STATE_WITH_2_FAMILIES)%0A  shallow(%3CAddProjectCollaboratorButton store=%7Bstore%7D /%3E)%0A%7D)%0A

fix unti test