2018-03-21 16:23:38 +00:00
|
|
|
module.exports = function(config) {
|
|
|
|
config.set({
|
|
|
|
basePath: '',
|
|
|
|
frameworks: ['mocha', 'chai'],
|
|
|
|
files: [
|
|
|
|
'jquery.datetimepicker.css',
|
|
|
|
'node_modules/php-date-formatter/js/php-date-formatter.js',
|
|
|
|
'jquery.js',
|
|
|
|
'jquery.datetimepicker.js',
|
|
|
|
'tests/bootstrap.js',
|
|
|
|
'tests/tests/*.js'
|
|
|
|
],
|
|
|
|
reporters: ['progress'],
|
2019-02-23 11:23:52 +00:00
|
|
|
port: 2002,
|
|
|
|
hostname: '127.0.0.1',
|
2018-03-21 16:23:38 +00:00
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
browsers: ['Firefox'],
|
|
|
|
autoWatch: true,
|
|
|
|
singleRun: false, // Karma captures browsers, runs the tests and exits
|
|
|
|
concurrency: Infinity,
|
|
|
|
plugins: [
|
|
|
|
'karma-firefox-launcher',
|
|
|
|
'karma-mocha',
|
|
|
|
'karma-chai'
|
|
|
|
],
|
|
|
|
client: {
|
|
|
|
captureConsole: true
|
|
|
|
}
|
|
|
|
})
|
2019-02-23 11:23:52 +00:00
|
|
|
};
|