No idea what the problem is...
karma.conf.js
files: [
// TEMPLATES
'app/scripts/directives/views/profile_picture.html',
preprocessors : {
// generate js files from html templates
'app/scripts/directives/views/profile_picture.html': 'ng-html2js'
},
ngHtml2JsPreprocessor: {
stripPrefix: 'app/',
// setting this option will create only a single module that contains templates
// from all the files, so you can load them all with module('templates')
moduleName: 'templates'
},
Then in the test I use:
beforeEach(module('templates'));
My templateUrl in directive looks like:
templateUrl: 'scripts/directives/views/profile_picture.html',
Getting
Error: Unexpected request: GET scripts/directives/views/profile_picture.html
Any idea please what could be wrong with this or suggestion what to check?