{"size": 471, "ext": "js", "max_stars_repo_path": "packages/cozy-procedures/src/redux/connectWithProcedures.spec.js", "max_stars_repo_name": "LucsT/cozy-libs", "max_stars_repo_stars_event_min_datetime": "2018-06-21T00:35:27.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-19T01:39:48.000Z", "max_issues_repo_path": "packages/cozy-procedures/src/redux/connectWithProcedures.spec.js", "max_issues_repo_name": "LucsT/cozy-libs", "max_issues_repo_issues_event_min_datetime": "2018-08-08T13:57:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T07:26:47.000Z", "max_forks_repo_path": "packages/cozy-procedures/src/redux/connectWithProcedures.spec.js", "max_forks_repo_name": "LucsT/cozy-libs", "max_forks_repo_forks_event_min_datetime": "2018-06-12T16:59:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-02T09:43:21.000Z"}
{"max_stars_count": 6, "max_issues_count": 458, "max_forks_count": 13, "avg_line_length": 27.7058823529, "max_line_length": 71, "alphanum_fraction": 0.7070063694}
import { connect } from 'react-redux'

import connectWithProcedures from './connectWithProcedures'
import context from './context'

jest.mock('react-redux')

describe('connectWithProcedures', () => {
  it('should connect the component with procedures context', () => {
    const mapStateToProps = state => ({ foo: state.foo })
    connectWithProcedures(mapStateToProps)
    expect(connect).toHaveBeenCalledWith(mapStateToProps, null, null, {
      context
    })
  })
})
