diff --git a/karma.conf.pubnub-v4.js b/karma.conf.pubnub-v4.js index c624c73..63a82b2 100644 --- a/karma.conf.pubnub-v4.js +++ b/karma.conf.pubnub-v4.js @@ -15,7 +15,7 @@ module.exports = function(config) { // list of files / patterns to load in the browser files: [ - 'test/polyfills/bind.js', + 'node_modules/babel-polyfill/dist/polyfill.js', 'bower_components/angular/angular.js', 'bower_components/angular-mocks/angular-mocks.js', 'bower_components/pubnub-v4/dist/web/pubnub.js', diff --git a/package.json b/package.json index b6b0603..edea895 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ ], "devDependencies": { "babel-loader": "^6.2.7", + "babel-polyfill": "^6.26.0", "babel-preset-es2015": "^6.18.0", "babel-register": "^6.18.0", "eslint": "^3.9.1", @@ -52,4 +53,4 @@ "webpack-dev-server": "^1.16.2", "webpack-stream": "^3.2.0" } -} \ No newline at end of file +}