title: How to test react-router with enzyme
body: <p>I am using enzyme+mocha+chai to test my react-redux project. Enzyme provides shallow to test component behavior. But I didn't find a way to test the router. I am using react-router as below:</p>
  
  <pre><code>&lt;Router history={browserHistory}&gt;
       ...
          &lt;Route path="nurse/authorization" component{NurseAuthorization}/&gt;
       ...
    &lt;/Route&gt;
  </code></pre>
  
  <p>I want to test this route <code>nurse/authorization</code> refer to <code>NurseAuthorization</code> component. How to test it in reactjs project?</p>
  
  <p><strong>EDIT1</strong></p>
  
  <p>I am using <code>react-router</code> as the router framework. </p>