title: Unexpected request: POST no more request expected, after injecting directive
body: <p>I am injecting a directive to test like the answer here: <a href="https://stackoverflow.com/questions/38023581/how-do-i-test-the-html-pointed-to-by-the-templateurl-of-an-angular-directive">How do I test the HTML pointed to by the templateUrl of an angular directive?</a></p>
  
  <pre><code>describe('MyAppTest', function() {
      let elem;
      let scope;
  
      beforeEach(module('my.app'));
  
      beforeEach(inject(function ($rootScope, $compile) {
          scope = $rootScope.$new();
          elem = $compile('&lt;my-directive&gt;&lt;/my-directive&gt;')(scope)[0];
          $scope.$digest();
      }));
  
      it('Should success', function () {
          expect(elem.getElementById('some-id').childElementCount.not.toBe(0);
      };
  }
  </code></pre>
  
  <p>While I debug it the <code>elem</code> variable actually get my wanted directive but for some reason the test throw me this error: <code>Unexpected request: POST no more request expected</code>.</p>
  
  <p>The <code>some-id</code> is a div that has ng-repeat attribute and influenced from a server request with <code>$http</code>, but I am not using <code>$httpBackend</code> so I don't know why this error happens.</p>
  
  <p>Someone can figure out why this is happening?</p>
  
  <p>Thanks in advance!</p>