何が問題なのかわからない...
カルマ.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'
},
次に、私が使用するテストで:
beforeEach(module('templates'));
ディレクティブの私の templateUrl は次のようになります。
templateUrl: 'scripts/directives/views/profile_picture.html',
取得
Error: Unexpected request: GET scripts/directives/views/profile_picture.html
これの何が問題なのか、何をチェックすべきか提案してください。