Browse Source

Merge pull request #2544 from mjul/patch-1

Update 10.4-test-utils.md
main
Paul O’Shannessy 10 years ago
parent
commit
79712ee462
  1. 2
      docs/10.4-test-utils.md

2
docs/10.4-test-utils.md

@ -21,7 +21,7 @@ Example usage:
```javascript ```javascript
var node = this.refs.input.getDOMNode(); var node = this.refs.input.getDOMNode();
React.addons.TestUtils.Simulate.click(node); React.addons.TestUtils.Simulate.click(node);
React.addons.TestUtils.Simulate.change(node); React.addons.TestUtils.Simulate.change(node, {target: {value: 'Hello, world'}});
React.addons.TestUtils.Simulate.keyDown(node, {key: "Enter"}); React.addons.TestUtils.Simulate.keyDown(node, {key: "Enter"});
``` ```

Loading…
Cancel
Save