Currently a lot of the test cases for withState actually only test logic that is implemented in parseProps. This makes it confusing when withState contains soooo many tests, especially since they don't actually test the code in withState (that part was refactored to a separate function).
A testsuite exclusively for parseProps should be created and a couple of test cases for withState can be removed.
Currently a lot of the test cases for
withStateactually only test logic that is implemented inparseProps. This makes it confusing whenwithStatecontains soooo many tests, especially since they don't actually test the code inwithState(that part was refactored to a separate function).A testsuite exclusively for
parsePropsshould be created and a couple of test cases forwithStatecan be removed.