We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
common-issues
1 parent f143877 commit a576621Copy full SHA for a576621
docs/common-issues.md
@@ -39,7 +39,7 @@ More details and motivation can be found at [migration from 2 to 3: Calling prop
39
Instead of storing `.find()` results into a local variable, re-find from the root after any change.
40
41
```jsx
42
-wrapper.find('button').props().onClick();
+wrapper.find('button').invoke('onClick')();
43
expect(wrapper.find('input').prop('value')).to.equal('test');
44
```
45
@@ -52,7 +52,7 @@ function getButton(wrapper) {
52
53
// …
54
55
-getButton(wrapper).prop('onClick')();
+getButton(wrapper).invoke('onClick')();
56
57
58
### Testing third party libraries
0 commit comments