I'm having a hard time testing async functionality in component integration tests. Input kicks off an async call to an endpoint, and when it returns, I send an action. I'm trying to test that the action sends the correct data.
I've tried putting my assertion in the wait()
helper, but the assertion gets hit before the (dependent upon async) action is called.
Here's a twiddle showing that problem: http://ift.tt/2ph8JTT
How can I correctly code my async component integration tests?
Aucun commentaire:
Enregistrer un commentaire