mardi 27 janvier 2015

How to make Ember.$.ajax integration test friendly

I have a button that when clicked calls an action in the controller which runs a Ember.$.ajax({ command.


However when I click this button in an integration test I get an Assertion Failed error:



Uncaught Error: Assertion Failed: You have turned on testing mode, which disabled the run-loop's autorun. You will need to wrap any code with asynchronous side-effects in an run






Aucun commentaire:

Enregistrer un commentaire