In the render part of a component I have the following div:
<div className="col-sm-8" >
<input ref='full_link' className="formctrl" name='full_link' type='text'
value={browser.getURL(this.props.params.id)} />
</div>
To write a test unit for this component, I tried to shallow render it (const component = shallow(<myComponent />);) and it returns this error:
TypeError: Cannot read property 'id' of undefined
So I need to send this props to my component in the test. How should I send id from this.props.params.id to the shallow render?