title: Testing AngularJS promises in Jasmine 2.0
body: <p>I've been trying to wrap my head around Jasmine 2.0 and AngularJS promises. I know that:</p>
  
  <ul>
  <li><a href="http://jasmine.github.io/2.0/introduction.html#section-Asynchronous_Support" rel="nofollow noreferrer">Jasmine 2.0 introduced the <code>done</code> function</a> to replace the old <code>runs</code> and <code>waitsFor</code> functions</li>
  <li><a href="https://stackoverflow.com/a/20311552/2892649">AngularJS <code>$q</code> promises will not resolve until a digest cycle is triggered</a></li>
  </ul>
  
  <p>How can I test AngularJS promises using the new async syntax in Jasmine 2.0?</p>