Testing actions and thunks

To finish our testing goals, we have to look at how we can test actions and thunks. Testing the former is really trivial after everything we've done so far, because it's just a matter of calling an action creator and checking the fields on the produced action, but testing thunks, which will surely involve an asynchronous service call and will surely dispatch several – OK, that's interesting!

We'll skip the simpler action tests (though we'll get to test them, anyway, as you'll see) and we'll dive in directly to writing unit tests for our thunks.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.161.77