Removed detect browsers to fix issues with Travis.
This commit is contained in:
parent
34c1e3e614
commit
660179f711
|
@ -5,31 +5,14 @@ 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;
|
||||
}
|
||||
},
|
||||
frameworks: ['mocha'],
|
||||
singleRun: true,
|
||||
files: [
|
||||
'./../../tests.js' // project root
|
||||
],
|
||||
plugins: [
|
||||
'karma-mocha',
|
||||
'karma-chrome-launcher',
|
||||
'karma-firefox-launcher',
|
||||
'karma-detect-browsers'
|
||||
'karma-firefox-launcher'
|
||||
]
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue