From 9e2c8937674ccf21450f1e850ff2a85424331d88 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Tue, 25 Aug 2015 09:47:38 -0700 Subject: [PATCH] Fix formatting in test utils docs --- docs/10.4-test-utils.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/10.4-test-utils.md b/docs/10.4-test-utils.md index 50f82d1e..0600aaa9 100644 --- a/docs/10.4-test-utils.md +++ b/docs/10.4-test-utils.md @@ -17,12 +17,14 @@ Simulate.{eventName}(DOMElement element, object eventData) Simulate an event dispatch on a DOM node with optional `eventData` event data. **This is possibly the single most useful utility in `ReactTestUtils`.** **Clicking an element** + ```javascript var node = React.findDOMNode(this.refs.button); React.addons.TestUtils.Simulate.click(node); ``` **Changing the value of an input field and then pressing ENTER** + ```javascript var node = React.findDOMNode(this.refs.input); node.value = 'giraffe'