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
it('should have called genres api first', result => {
expect(something).toEqual(something);
return new MockError();
});
it('then should call add notification action', result => {
expect(result).toEqual(put(someAction(new MockError())));
});
// and it works :)
const someAction = error => console.log(error.response.data)
In my saga I have code that looks like this:
I have this in my saga test:
which works great for the generic "unknown error occurred" but I need to test throwing an object like:
But I can't figure out actually throw the object back to the object. Any ideas?
The text was updated successfully, but these errors were encountered: