-
Notifications
You must be signed in to change notification settings - Fork 11
Open
@dave-irvine
Description
If I have an Action that returns a Promise which may either resolve or reject (redux-form requires this for form submission), how can I write a test that handles the error case? Currently if I reject a Promise the tests are crashing out.
With redux-mock-store you could do this:
store.dispatch(actionA()).catch((err) => { expect(err)...... });
But I can't find a way to do this with this library. Any clues?
Metadata
Metadata
Assignees
Labels
No labels