Array.prototype.find polyfill for phantom.js based on https://github.com/tom-james-watson/phantomjs-polyfill
This is a polyfill for Array.prototype.find which is missing from PhantomJS.
npm install --save-dev ptim/phantomjs-polyfill-find
require('phantomjs-polyfill')
Include the polyfill directly in the files list of your karma.conf
...
files: [
'./node_modules/phantomjs-polyfill-find/find-polyfill.js',
...
]
...