@samitouri / QOS-React-2 / commits / 66881ae083

Fix formatting in test utils docs

Ben Alpert committed Aug 25, 2015 at 09:47 UTC 66881ae0834b5ebf86dcd8037178d1685771feb0
1 file changed +2
docs/docs/10.4-test-utils.md
+2
@@ -17,12 +17,14 @@ Simulate.{eventName}(DOMElement element, object eventData)
17 Simulate an event dispatch on a DOM node with optional `eventData` event data. **This is possibly the single most useful utility in `ReactTestUtils`.**
18
19 **Clicking an element**
20 +
21 ```javascript
22 var node = React.findDOMNode(this.refs.button);
23 React.addons.TestUtils.Simulate.click(node);
24 ```
25
26 **Changing the value of an input field and then pressing ENTER**
27 +
28 ```javascript
29 var node = React.findDOMNode(this.refs.input);
30 node.value = 'giraffe'