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