@samitouri / QOS-React-2 / commits / c2904b978e

fix docs

petehunt committed Feb 18, 2014 at 22:57 UTC c2904b978ed95515479fdc52c32c71fc42fb8e81
1 file changed +6 -4
docs/docs/09.4-test-utils.md
+6 -4
@@ -7,11 +7,11 @@ prev: class-name-manipulation.html
7 next: examples.html
8 ---
9
10 -`React.addons.TestUtils` makes it easy to test React components in the testing framework of your choice (we use [Jasmine](http://pivotal.github.io/jasmine/)). All functions except for `renderIntoDocument()` work without a browser DOM.
10 +`React.addons.TestUtils` makes it easy to test React components in the testing framework of your choice (we use [Jasmine](http://pivotal.github.io/jasmine/) with [jsdom](https://github.com/tmpvar/jsdom)).
11
12 #### ReactComponent renderIntoDocument(ReactComponent instance)
13
14 -Render a component into a detached DOM node in the document. **This is the only function that requires a DOM.**
14 +Render a component into a detached DOM node in the document. **This function requires a DOM.**
15
16 #### boolean isComponentOfType(ReactComponent instance, function componentClass)
17
@@ -67,9 +67,11 @@ Pass a mocked component module to this method to augment it with useful methods
67
68 #### Simulate.{eventName}({ReactComponent|DOMElement} element, object nativeEventData)
69
70 -Simulate an event dispatch on a React component instance or browser DOM node with optional `nativeEventData` event data. This uses React's event system so it works outside of the browser. **This is possibly the single most useful utility in `ReactTestUtils`.**
70 +Simulate an event dispatch on a React component instance or browser DOM node with optional `nativeEventData` event data. **This is possibly the single most useful utility in `ReactTestUtils`.**
71
72 -**NOTE:** this helper is used to simulate browser events, so synthetic React events like `change` are not available. If you want to test `change`, simulate the underlying `input` browser event.
72 +> Note:
73 +>
74 +> This helper is used to simulate browser events, so synthetic React events like `change` are not available. If you want to test `change`, simulate the underlying `input` browser event.
75
76 Example usage: `React.addons.TestUtils.Simulate.click(myComponent)`
77