diff --git a/src/ngMockBackend/angular-mocks-backend.js b/src/ngMockBackend/angular-mocks-backend.js index df9a397..d77ea6d 100644 --- a/src/ngMockBackend/angular-mocks-backend.js +++ b/src/ngMockBackend/angular-mocks-backend.js @@ -51,10 +51,16 @@ }; ClassDef.prototype.config = function(angular, httpBackend) { + configAllow(httpBackend); configResources(angular, httpBackend); }; + var configAllow = function(httpBackend) { + // Allow get html to load templates + httpBackend.when('GET', regexpUrl(/.html$/)).passThrough(); + }; + //--- mocked resources var resources = [];