Closed ZeikJT closed 9 years ago
We should add some tests for this new feature, thanks for the PR :)
@3den Fixed all comments, let me know if there's anything else that needs changing
@ZeikJT there is just 1 small suggestion to simplify the assert
@3den
React@0.13 has a deprecation warning for
React.withContext
so I added a helper to make using mock contexts easier in testing. This will be especially useful in the future whenReact.withContext
is completely removed.Enables testing contexts by simply doing: