Skip to content

Commit

Permalink
[Docs] ShallowWrapper#get: fixed wrong props() usage
Browse files Browse the repository at this point in the history
Since ShallowWrapper#get returns a ReactElement, we should be using `props` rather than `props()` on the demo.
  • Loading branch information
StanleySathler committed Nov 29, 2018
1 parent ffd13e1 commit bc1bbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Returns the node at a given index of the current wrapper.

```jsx
const wrapper = shallow(<MyComponent />);
expect(wrapper.find(Foo).get(0).props().foo).to.equal('bar');
expect(wrapper.find(Foo).get(0).props.foo).to.equal('bar');
```


Expand Down

0 comments on commit bc1bbc0

Please sign in to comment.