Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

review to work with angularjs 1.2.10+

Compare
Choose a tag to compare
@erkobridee erkobridee released this 31 Mar 20:03
· 7 commits to master since this release
  // provider

    // You can also just use provide to blanket replace $httpBackend 
    // with the mock
  ngMockBackend.config(

    ['$provide', 

  function($provide) {

    var obj = new angular.mock.$HttpBackendProvider(),
        createHttpBackendMock = obj.$get[1];

    // Decorate by passing in the constructor for mock $httpBackend
    $provide.decorator('$httpBackend', createHttpBackendMock);

  }]);