enpit / fleux

Towards Sane State Management in React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unittest `parseProps` directly

objectliteral opened this issue · comments

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.