Changed ngXosLib CI tests to include builded views
diff --git a/views/ngXosViews/ceilometerDashboard/karma.conf.js b/views/ngXosViews/ceilometerDashboard/karma.conf.js
index cbc5a83..f9cc95b 100644
--- a/views/ngXosViews/ceilometerDashboard/karma.conf.js
+++ b/views/ngXosViews/ceilometerDashboard/karma.conf.js
@@ -10,8 +10,9 @@
var bowerComponents = wiredep( {devDependencies: true} )[ 'js' ].map(function( file ){
return path.relative(process.cwd(), file);
});
-/*eslint-enable*/
+
module.exports = function(config) {
+/*eslint-enable*/
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
@@ -25,10 +26,8 @@
// list of files / patterns to load in the browser
files: bowerComponents.concat([
- 'src/css/**/*.css',
'../../../xos/core/xoslib/static/js/vendor/ngXosVendor.js',
'../../../xos/core/xoslib/static/js/vendor/ngXosHelpers.js',
- '../../../xos/core/xoslib/static/js/xosApi.js',
'src/js/main.js',
'src/js/**/*.js',
'spec/**/*.mock.js',
@@ -46,17 +45,11 @@
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'src/js/**/*.js': ['babel'],
- 'spec/**/*.js': ['babel'],
+ 'spec/**/*.test.js': ['babel'],
+ 'spec/**/*.mock.js': ['babel'],
'src/**/*.html': ['ng-html2js']
},
- babelPreprocessor: {
- options: {
- presets: ['es2015'],
- sourceMap: 'inline'
- }
- },
-
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