Permalink
Browse files

fix(karma.js) - Added polyfill. Tests weren't working: phantomjs rais…

…ed 'undefined function'
  • Loading branch information...
1 parent 742e811 commit c2edba373930a2271bf9ecc429ea4542eef45c58 @pbassut pbassut committed Mar 27, 2016
Showing with 5 additions and 2 deletions.
  1. +1 −0 karma-jqlite.conf.js
  2. +1 −0 karma-jquery.conf.js
  3. +3 −2 package.json
@@ -12,6 +12,7 @@ module.exports = function (config) {
],
files: [
+ 'node_modules/phantomjs-polyfill/bind-polyfill.js',
'bower_components/rangy/rangy-core.js',
'bower_components/rangy/rangy-selectionsaverestore.js',
'bower_components/angular/angular.min.js',
@@ -12,6 +12,7 @@ module.exports = function (config) {
],
files: [
+ 'node_modules/phantomjs-polyfill/bind-polyfill.js',
'bower_components/jquery/jquery.min.js',
'bower_components/rangy/rangy-core.js',
'bower_components/rangy/rangy-selectionsaverestore.js',
View
@@ -18,7 +18,7 @@
],
"license": "MIT",
"homepage": "http://textangular.com",
- "main": "./dist/textAngular.min.js",
+ "main": "./dist/textAngular.min.js",
"dependencies": {
"rangy": "^1.3.0"
},
@@ -51,7 +51,8 @@
"karma-jasmine": "~0.1.5",
"karma-phantomjs-launcher": "~0.1.2",
"karma-script-launcher": "~0.1.0",
- "phantomjs": "^1.9.8"
+ "phantomjs": "^1.9.8",
+ "phantomjs-polyfill": "0.0.2"
},
"scripts": {
"test": "bower install && grunt travis-test --verbose"

0 comments on commit c2edba3

Please sign in to comment.