|
@ -30,7 +30,7 @@ React.addons.TestUtils.Simulate.click(node); |
|
|
|
|
|
|
|
|
```javascript |
|
|
```javascript |
|
|
var node = ReactDOM.findDOMNode(this.refs.input); |
|
|
var node = ReactDOM.findDOMNode(this.refs.input); |
|
|
node.value = 'giraffe' |
|
|
node.value = 'giraffe'; |
|
|
React.addons.TestUtils.Simulate.change(node); |
|
|
React.addons.TestUtils.Simulate.change(node); |
|
|
React.addons.TestUtils.Simulate.keyDown(node, {key: "Enter", keyCode: 13, which: 13}); |
|
|
React.addons.TestUtils.Simulate.keyDown(node, {key: "Enter", keyCode: 13, which: 13}); |
|
|
``` |
|
|
``` |
|
|