karma-ng-html2js-preprocessor
karma-ng-html2js-preprocessor copied to clipboard
Needs error message when no templates found to render
Currently it just crashes, i.e.: fails with an error about failing to load the moduleName
.
What does your error look like ? I have something like :
forEach@/home/eric-burel/Websites/stoulou/assets/bower_components/angular/angular.js:321:24
loadModules@/home/eric-burel/Websites/stoulou/assets/bower_components/angular/angular.js:4487:12
createInjector@/home/eric-burel/Websites/stoulou/assets/bower_components/angular/angular.js:4409:30
workFn@/tmp/6ffef11293cda7c39e2e8b72934e49d8.browserify:2800:60
inject@/tmp/6ffef11293cda7c39e2e8b72934e49d8.browserify:2780:41
when executing this piece of code :
beforeEach(angular.mock.module('/frontend/core/views/navbar.html')); beforeEach(function(){ angular.mock.inject(function(_$rootScope_, _$compile_, _Menu_){ // pass through any asset request $compile = _$compile_;
If I remove the angular.mock.module it works fine. I think its due to the template not being found or a bad karma configuration, I struggle to debug this...