Sometimes we want to test our Redux reducers to make sure they work as expected. In this lesson we will walk through setting up some Redux reducer tests for common situations and edge cases.
Just curious as to the reason why stateBefore needs to be a function rather than a const. Is that intentional?
No reason, a variable would work great :)