I have got some angular services and a simple test, which tests that 1 method returns an instance of some type.
When I run it in WebStorm with PhantomJS and Chrome
"browsers": ["PhantomJS", "ChromeCanary"]
All tests are passed in chrome but in PhantomJS some tests will pass, but the test mentioned above produces the type error. (Not the test, but the code which is being tested by the test)
TypeError: 'undefined' is not a function (evaluating 'this._decorateParent.bind(this)')
<... other info>
Sure, I can mock out some dependencies and it will help. But I want to know what is the reason for such behaviour.
angular.js v1.3.14
karma v0.12.32
PhantomJS v1.9.8