Testing Reducer Functions
When you add or modify a reducer functions you should update the unit tests accordingly:
Test any new/modified actions
- Test when the store is in its initial state
- Test when the store already has data and received an action
- Test any special cases the developer deems necessary to test