Skip to content

Commit

Permalink
Update get.md
Browse files Browse the repository at this point in the history
props is a method and not a property.
  • Loading branch information
manishdipankar1711 committed Jul 26, 2018
1 parent 64051d9 commit b3db75e
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 b3db75e

Please sign in to comment.