Skip to content

Commit ea77cd5

Browse files
author
CloudNiner
committed
Switch to karma-phantomjs2-launcher
PhantomJS 1 is fails to load in angular 1.5+ due to missing function prototypes. Can revert to karma-phantomjs-launcher once it officially supports PhantomJS2 No fix from the angular project because phantomjs is not one of the officially supported browsers See: angular/angular.js#13794
1 parent 7760b3b commit ea77cd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function(config) {
1414

1515
plugins: [
1616
'karma-chrome-launcher',
17-
'karma-phantomjs-launcher',
17+
'karma-phantomjs2-launcher',
1818
'karma-jquery',
1919
'karma-jasmine',
2020
'karma-spec-reporter'
@@ -67,7 +67,7 @@ module.exports = function(config) {
6767

6868
// start these browsers
6969
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
70-
browsers: ['PhantomJS'],
70+
browsers: ['PhantomJS2'],
7171

7272

7373
// Continuous Integration mode

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"karma-chrome-launcher": "^0.1.4",
3636
"karma-jasmine": "^0.3.6",
3737
"karma-jquery": "^0.1.0",
38-
"karma-phantomjs-launcher": "^0.1.4",
38+
"karma-phantomjs2-launcher": "^0.4.0",
3939
"karma-spec-reporter": "^0.0.18",
4040
"run-sequence": "^1.0.2"
4141
},

0 commit comments

Comments
 (0)