title: Unit test using jasmine for durandal router
body: <p>I am using durandal framework for my Single Page Application. Where i need to test a function using jasmine.
  The following router.js function code throwing error.</p>
  
  <pre><code>router.navigateTo("#/Home/About"); 
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>TypeError: 'undefined' is not an object (evaluating 'sammy.lookupRoute')
  </code></pre>
  
  <p>I tried to fix this issue by registering routes in my specs</p>
  
  <pre><code>            router.mapNav("reports/create");
              router.mapNav("reports/display");
  </code></pre>
  
  <p>Still am getting same error. How to fix this issue? Is there any example for testing router.js modules.</p>