[Fiber] Fix reactComponentExpect (#8258) (#8257)

* Add more reactComponentExpect tests

* Implement reactComponentExpect in Fiber
This commit is contained in:
Dan Abramov
2016-11-10 21:27:07 +00:00
committed by GitHub
parent 3e2680411e
commit a9fa135fd8
3 changed files with 14 additions and 3 deletions
-2
View File
@@ -593,9 +593,7 @@ src/shared/utils/__tests__/traverseAllChildren-test.js
* should warn for using maps as children with owner info
src/test/__tests__/ReactTestUtils-test.js
* traverses children in the correct order
* should support injected wrapper components as DOM components
* should change the value of an input field
* should change the value of an input field in a component
* can scry with stateless components involved
* should set the type of the event
+2
View File
@@ -1260,8 +1260,10 @@ src/test/__tests__/ReactTestUtils-test.js
* can scryRenderedDOMComponentsWithClass with TextComponent
* can scryRenderedDOMComponentsWithClass with className contains \n
* can scryRenderedDOMComponentsWithClass with multiple classes
* traverses children in the correct order
* should throw when attempting to use ReactTestUtils.Simulate with shallow rendering
* should not warn when simulating events with extra properties
* can scry with stateless components involved
src/test/__tests__/reactComponentExpect-test.js
* should match composite components