Browse Source

Update 10.4-test-utils.md

Added `var renderer = ReactTestUtils.createRenderer();` (Line 235) to clarify where `renderer` (Line 236) comes from.
main
Yuichi Hagio 9 years ago
parent
commit
f501508014
  1. 1
      docs/10.4-test-utils.md

1
docs/10.4-test-utils.md

@ -232,6 +232,7 @@ After `render` has been called, returns shallowly rendered output. You can then
Then you can assert:
```javascript
var renderer = ReactTestUtils.createRenderer();
result = renderer.getRenderOutput();
expect(result.type).toBe('div');
expect(result.props.children).toEqual([

Loading…
Cancel
Save