
- Function.prototype.bind
- Element.prototype.remove
Note: PhantomJS2.x has supported those method natively. And the PhantomJS team don't recommend PhantomJS 1.x anymore
npm install -D phantomjs-polyfills
Add the polyfills in your karma.config.js
...
files: [
{pattern: './node_modules/phantomjs-polyfills/polyfills/*.js', included: true},
...
]