title: $httpBackend.flush() needs to call on each test : Jasmin-AngularJs Unit Test
body: <p>My question is very simple  unlike</p>
  
  <pre><code> afterEach (function () {
          $httpBackend.verifyNoOutstandingExpectation ();
          $httpBackend.verifyNoOutstandingRequest ();
      });
  </code></pre>
  
  <p>why <code>$httpBackend.flush()</code> cant be placed inside <code>afterEach(function(){}</code> ??
  Because when I have several test cases, every time I need to call it.</p>
  
  <pre><code>describe("test1", function(){
  it('1', function(){
  $httpBackend.flush()
  })
  it('2', function(){
  $httpBackend.flush()
  })
  it('3', function(){
  $httpBackend.flush()
  })
  })
  </code></pre>
  
  <p>Even I tried to put <code>$httpBackend.flush()</code> inside after each block , but I started getting error <strong>" Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
  "</strong>.</p>
  
  <p>Is there any other way there by I can have only one block to be automatically get executed after every function for <code>$httpBackend.flush()</code></p>
  
  <p>Thanks</p>