Skip to content

Commit

Permalink
[Docs] fix renderProp argument examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dferber90 committed Nov 6, 2018
1 parent 6cdd27c commit b3f0123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/renderProp.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ expect(wrapper.equals(<h1>The mouse position is 0, 0</h1>)).to.equal(true);
```jsx
const wrapper = mount(<App />)
.find(Mouse)
.renderProp('render', [10, 20]);
.renderProp('render', 10, 20);

expect(wrapper.equals(<h1>The mouse position is 10, 20</h1>)).to.equal(true);
```
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/renderProp.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ expect(wrapper.equals(<h1>The mouse position is 0, 0</h1>)).to.equal(true);
```jsx
const wrapper = shallow(<App />)
.find(Mouse)
.renderProp('render', [10, 20]);
.renderProp('render', 10, 20);

expect(wrapper.equals(<h1>The mouse position is 10, 20</h1>)).to.equal(true);
```

0 comments on commit b3f0123

Please sign in to comment.