Skip to content

Commit a663a8d

Browse files
committed
test(karma): config: add chrome & firefox
1 parent 6e5f1e4 commit a663a8d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

karma.conf.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module.exports = function (config) {
88
'karma-mocha',
99
'karma-chai',
1010
'karma-jquery',
11-
'karma-phantomjs-launcher',
11+
'karma-chrome-launcher',
12+
'karma-firefox-launcher',
1213
'karma-html2js-preprocessor',
1314
'karma-sinon',
1415
'karma-fixture',
@@ -25,17 +26,17 @@ module.exports = function (config) {
2526

2627
preprocessors: {
2728
'**/*.html': ['html2js'],
28-
'**/*.json' : ['json_fixtures']
29+
'**/*.json': ['json_fixtures']
2930
},
3031

3132
files: [
32-
'./node_modules/handlebars/dist/handlebars.min.js',
33-
'./index.html',
34-
'./unbxdSearch.js',
35-
'./app.js',
36-
'mock/*.json',
37-
'test/navigation/*.spec.js',
38-
'test/search/*.spec.js',
33+
'./node_modules/handlebars/dist/handlebars.min.js',
34+
'./index.html',
35+
'./unbxdSearch.js',
36+
'./app.js',
37+
'mock/*.json',
38+
'test/navigation/*.spec.js',
39+
'test/search/*.spec.js',
3940
],
4041

4142
reporters: ['spec'],
@@ -47,6 +48,6 @@ module.exports = function (config) {
4748
// level of logging
4849
logLevel: config.LOG_INFO,
4950

50-
browsers: ['PhantomJS']
51+
browsers: ['Chrome', 'ChromeHeadless', 'Firefox']
5152
});
5253
};

0 commit comments

Comments
 (0)