Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit 507c6cb

Browse files
committed
Add fn.bind polyfill for PhantomJS
Versions prior to 2.0.0 are based on a version of WebkitQT that does not support Fn.proto.bind.
1 parent 1f4ad41 commit 507c6cb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ module.exports = function(config) {
55
files: [
66
'node_modules/angular/angular.js',
77
'node_modules/angular-mocks/angular-mocks.js',
8+
'node_modules/phantomjs-polyfill/bind-polyfill.js',
89
'src/**/*.js',
9-
'test/**/*.js'
10+
'test/**/*.spec.js'
1011
],
1112
preprocessors: {
1213
'src/**/*.js': 'babel',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"karma-phantomjs-launcher": "^0.2.1",
5151
"mocha": "^2.2.5",
5252
"phantomjs": "^1.9.18",
53+
"phantomjs-polyfill": "0.0.1",
5354
"sinon-chai": "^2.8.0"
5455
}
5556
}

0 commit comments

Comments
 (0)