Fixed ceilometer bug
diff --git a/views/ngXosLib/karma.conf.js b/views/ngXosLib/karma.conf.js
index b75f95b..803ebb1 100644
--- a/views/ngXosLib/karma.conf.js
+++ b/views/ngXosLib/karma.conf.js
@@ -11,6 +11,8 @@
return path.relative(process.cwd(), file);
});
+console.log('bower', bowerComponents)
+
module.exports = function(config) {
/*eslint-enable*/
config.set({
@@ -26,9 +28,10 @@
// list of files / patterns to load in the browser
files: bowerComponents.concat([
- 'xosHelpers/src/*.module.js',
- 'xosHelpers/src/**/*.js',
- 'xosHelpers/spec/**/*.test.js',
+ //'./api/**/*.js',
+ './xosHelpers/src/*.module.js',
+ //'./xosHelpers/src/**/*.js',
+ './xosHelpers/spec/**/*.test.js'
]),
@@ -40,15 +43,24 @@
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
- '**/*.test.js': ['babel'],
- 'src/**/*.html': ['ng-html2js']
+ '**/*.test.js': ['babel']
},
- ngHtml2JsPreprocessor: {
- stripPrefix: 'src/', //strip the src path from template url (http://stackoverflow.com/questions/22869668/karma-unexpected-request-when-testing-angular-directive-even-with-ng-html2js)
- moduleName: 'templates' // define the template module name
+ babelPreprocessor: {
+ options: {
+ presets: ['es2015'],
+ sourceMap: 'inline'
+ },
+ filename: function (file) {
+ return file.originalPath;
+ },
},
+ //ngHtml2JsPreprocessor: {
+ // stripPrefix: 'src/', //strip the src path from template url (http://stackoverflow.com/questions/22869668/karma-unexpected-request-when-testing-angular-directive-even-with-ng-html2js)
+ // moduleName: 'templates' // define the template module name
+ //},
+
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
@@ -65,7 +77,7 @@
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
- logLevel: config.LOG_DEBUG,
+ logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes