title: Jasmine spies callThrough and callFake
body: <p>I have a scenario whereby I want to call <code>done()</code> on a <code>beforeEach</code> after a callback has been invoked. </p>
  
  <p>I tried to do this as follows :</p>
  
  <pre><code>spyOn(scope, 'onAdmin').and.callThrough().and.callFake(function(){done()})
  </code></pre>
  
  <p>But I'm not sure I get the right behaviour. Essentially what I want to achieve is to be able to call <code>done()</code> after each callback is done doing what it does. </p>
  
  <p><strong>UPDATE: workaround solution</strong> </p>
  
  <pre><code>scope.onAdminBackup = scope.onAdmin;
  spyOn(scope, 'onAdmin').and.callFake(function(admin)  {
  
   scope.onAdminBackup();
   done() ;
  
  })  
  </code></pre>