title: karma state go could not resolve "..."
body: <p>I am trying to test a function in my controller and just test to see if <code>$state.go</code> was called.  I put a spy on <code>$state.go</code> but when I call the function I get "Could not resolve 'thestate' from state ..."</p>
  
  <p>Here is my controller's function:</p>
  
  <pre><code>function cancel(){
    $state.go('thestate', {}, {reload: true});
  }
  </code></pre>
  
  <p>and my test:</p>
  
  <pre><code>it('should change state to thestate', function() {
    this.scope.cancel();
  });
  </code></pre>
  
  <p>when it runs the cancel function I get an error of "Could not resolve 'thestate' from state ..." but I do have a defined state in my routes.</p>
  
  <p>How can I mock states?</p>