mardi 7 avril 2015

Karma: Running test with phantomjs ends-up with TypeError, while succeeds with Chrome

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 mentioned test produces the type error. (actually 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 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



Thanx for any information/links/anything.


illustration


Aucun commentaire:

Enregistrer un commentaire