Open d4vidi opened 7 years ago
What about adding API for negative testing for verifying no dispatches have been made. For example - this use case: make sure that in case the reddit-server returns an error, action POSTS_UPDATED hasn't been dispatched.
POSTS_UPDATED
What about expect(dispatches.length).toBe(0) ?
expect(dispatches.length).toBe(0)
What about adding API for negative testing for verifying no dispatches have been made. For example - this use case: make sure that in case the reddit-server returns an error, action
POSTS_UPDATED
hasn't been dispatched.