Skip to content

Commit c2904b9

Browse files
committed
fix docs
1 parent 8122cad commit c2904b9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/docs/09.4-test-utils.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ prev: class-name-manipulation.html
77
next: examples.html
88
---
99

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)).
1111

1212
#### ReactComponent renderIntoDocument(ReactComponent instance)
1313

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.**
1515

1616
#### boolean isComponentOfType(ReactComponent instance, function componentClass)
1717

@@ -67,9 +67,11 @@ Pass a mocked component module to this method to augment it with useful methods
6767

6868
#### Simulate.{eventName}({ReactComponent|DOMElement} element, object nativeEventData)
6969

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`.**
7171

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.
7375
7476
Example usage: `React.addons.TestUtils.Simulate.click(myComponent)`
7577

0 commit comments

Comments
 (0)