Moved back to ng1
Change-Id: I43b284e3b3cb3ac19d43c088de988c89a7ea8807
diff --git a/conf/karma.conf.js b/conf/karma.conf.js
index 806a6f4..2db6132 100644
--- a/conf/karma.conf.js
+++ b/conf/karma.conf.js
@@ -13,17 +13,25 @@
'PhantomJS'
],
frameworks: [
- 'jasmine'
+ 'jasmine',
+ 'es6-shim'
],
files: [
'node_modules/es6-shim/es6-shim.js',
- conf.path.src('index.spec.js')
+ conf.path.src('index.spec.js'),
+ conf.path.src('**/*.html')
],
preprocessors: {
[conf.path.src('index.spec.js')]: [
'webpack'
+ ],
+ [conf.path.src('**/*.html')]: [
+ 'ng-html2js'
]
},
+ ngHtml2JsPreprocessor: {
+ stripPrefix: `${conf.paths.src}/`
+ },
reporters: ['progress', 'coverage'],
coverageReporter: {
type: 'html',
@@ -38,7 +46,10 @@
require('karma-junit-reporter'),
require('karma-coverage'),
require('karma-phantomjs-launcher'),
- require('karma-webpack')
+ require('karma-phantomjs-shim'),
+ require('karma-ng-html2js-preprocessor'),
+ require('karma-webpack'),
+ require('karma-es6-shim')
]
};