I am new to react, I need a help for writing a test case for Redux Form component "onSubmitSuccess", below is the code
reduxForm({ form: "AddTagForm",
enableReinitialize: true,
onSubmitSuccess: afterSubmit })
callback function,
export const afterSubmit = (dispatch) => dispatch(reset("AddTagForm"));
I need a help for writing a test case for afterSubmit method. Please help
Note: I am using jest with enzyme for unit testing.
Top comments (0)