You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
841 B
36 lines
841 B
'use strict';
|
|
|
|
// karma.conf.js
|
|
module.exports = function(config) {
|
|
|
|
config.set({
|
|
browsers: ['Firefox'],
|
|
frameworks: ['mocha', 'detectBrowsers'],
|
|
detectBrowsers: {
|
|
enabled: true,
|
|
usePhantomJS: false,
|
|
postDetection: function(availableBrowser) {
|
|
// modify to enable additional browsers if available
|
|
var runBrowsers = ['Firefox', 'Chrome'];
|
|
var browsers = [];
|
|
for(var i = 0; i < runBrowsers.length; i++) {
|
|
if(~availableBrowser.indexOf(runBrowsers[i])) {
|
|
browsers.push(runBrowsers[i]);
|
|
}
|
|
}
|
|
return browsers;
|
|
}
|
|
},
|
|
singleRun: true,
|
|
files: [
|
|
'browser/tests.js'
|
|
],
|
|
plugins: [
|
|
'karma-mocha',
|
|
'karma-chrome-launcher',
|
|
'karma-firefox-launcher',
|
|
'karma-detect-browsers'
|
|
]
|
|
});
|
|
|
|
};
|
|
|