You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Redux, action creators are functions which return plain objects. When testing action creators we want to test whether the correct action creator was called and also whether the right action was returned.
However, action creators can also return functions like this:
(dispatch,getState)=>{...}
In this case, how do I write tests? It's not a simple checking object equality anymore.