Commit e10da472 authored by Randall Leeds's avatar Randall Leeds

Update karma config for client templates

parent 71af3388
......@@ -52,7 +52,7 @@ module.exports = function(config) {
'h/static/scripts/vendor/sinon.js',
'h/static/scripts/vendor/chai.js',
'h/static/scripts/hypothesis.js',
'h/templates/*.html',
'h/templates/client/*.html',
'tests/js/**/*-test.coffee'
],
......@@ -63,14 +63,15 @@ module.exports = function(config) {
// strip templates of leading path
ngHtml2JsPreprocessor: {
stripPrefix: 'h/templates/'
moduleName: 'h.templates',
stripPrefix: 'h/templates/client/'
},
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'**/*.coffee': ['coffee'],
'h/templates/*.html': ['ng-html2js'],
'h/templates/client/*.html': ['ng-html2js'],
},
......@@ -105,10 +106,5 @@ module.exports = function(config) {
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
ngHtml2JsPreprocessor: {
stripPrefix: 'h/templates/',
moduleName: 'h.templates',
}
});
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment