pass props in another component in enzyme
import React from 'react'
import { shallow } from 'enzyme'
import App from './App'
import Modal from './Modal'
test('renders learn react link', () => {
const property = {
comps: 'john doe'
}
const wrapper = shallow(<App {...property} />)
const getContent = wrapper.find(Modal).prop('comps')
expect(getContent).toBe('john doex')
})