// Karma configuration
module.exports = function(config) {
	config.set({

		// base path that will be used to resolve all patterns (eg. files, exclude)
		basePath: '',

		// frameworks to use
		// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
		frameworks: ['jasmine'],

		// list of files / patterns to load in the browser
		files: [
			'dist/js/vendors.min.*.js',
			'dist/js/vendors.min.js',
			'node_modules/angular-mocks/angular-mocks.js',
			'node_modules/jasmine-promise-matchers/dist/jasmine-promise-matchers.js',
			'dist/js/eton.min.*.js',
			'dist/js/eton.min.js',

			'app/**/*.specs.js',
			//'app/**/*.html',
			'*.html'
		],

		// list of files to exclude
		exclude: [
		],

		// preprocess matching files before serving them to the browser
		// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
		preprocessors: {
			//'**/*.html': ['ng-html2js']
		},

		ngHtml2JsPreprocessor: {
			// strip this from the file path
			stripPrefix: '/',
			stripSuffix: '.ext',
			// prepend this to the
			prependPrefix: '/',

			// or define a custom transform function
			// - cacheId returned is used to load template
			//   module(cacheId) will return template at filepath
			/*cacheIdFromPath: function(filepath) {
        // example strips 'public/' from anywhere in the path
        // module(app/templates/template.html) => app/public/templates/template.html
        var cacheId = filepath.strip('public/', '');
        return cacheId;
      },*/

			// - setting this option will create only a single module that contains templates
			//   from all the files, so you can load them all with module('foo')
			// - you may provide a function(htmlPath, originalPath) instead of a string
			//   if you'd like to generate modules dynamically
			//   htmlPath is a originalPath stripped and/or prepended
			//   with all provided suffixes and prefixes
			moduleName: 'htmlModule'
		},

		// test results reporter to use
		// possible values: 'dots', 'progress'
		// available reporters: https://npmjs.org/browse/keyword/karma-reporter
		reporters: ['progress'],

		// web server port
		port: 9876,

		// enable / disable colors in the output (reporters and logs)
		colors: true,

		// level of logging
		// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
		logLevel: config.LOG_INFO,

		// enable / disable watching file and executing tests whenever any file changes
		autoWatch: true,

		// start these browsers
		// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
		browsers: ['Chrome_no_sandbox'],
		// browsers: ['PhantomJS'],

		customLaunchers: {
			Chrome_no_sandbox: {
				base: 'Chrome',
				flags: ['--no-sandbox']
			}
		},

		// Continuous Integration mode
		// if true, Karma captures browsers, runs the tests and exits
		singleRun: false,

		// Concurrency level
		// how many browser should be started simultaneous
		concurrency: Infinity,
	})
};
@@ -2610,16 +2610,18 @@
 ncher%0A%09%09
+//
 browsers
@@ -2647,19 +2647,16 @@
 ox'%5D,%0A%09%09
-// 
 browsers

test to be run on PhantomJS by default