karma-ng-html2js-preprocessor
karma-ng-html2js-preprocessor copied to clipboard
html2js-preprocessor fails if templateUrl: (elem, attr) => {return template};
Hi,
I'm trying to test a directive with this kind of behaviour and if I use a dynamic template I have this error:
Error: Unexpected request: GET /partials/widgets/farefinder-compact/
directives/search-criteria/templates/default.html
No more request expected
at $httpBackend (http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/vendor/angular-mocks/angular-mocks.js:1244:9)
at $httpBackend (http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/vendor/angular-mocks/angular-mocks.js:1237:11)
at p (http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/vendor/angular/angular.min.js:89:97)
at g (http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/vendor/angular/angular.min.js:86:245)
at http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/vendor/angular/angular.min.js:119:113
at n.$eval (http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/vendor/angular/angular.min.js:133:221)
at n.$digest (http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/vendor/angular/angular.min.js:130:233)
at Object.window.TestElement.create (http://localhost:9876/absolute/Users/aguilaa/source/app.ryanair.com/client/lib/test-suite.js:31:18)
at Object.
Is there any way to configure the plugin to accept this kind of configuration in the templateUrl property?