Skip to content

Commit

Permalink
fix mount/reduceRight docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankunpeng committed Mar 24, 2019
1 parent e4dc127 commit a8a3c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/ReactWrapper/reduceRight.md
Expand Up @@ -36,8 +36,8 @@ function Foo() {

```jsx
const wrapper = mount(<Foo />);
const total = wrapper.find(Bar).reduceRight((amount, n) => amount + n.prop('amount'));
expect(total).to.equal(16);
const total = wrapper.find(Bar).reduceRight((amount, n) => amount + n.prop('amount'), 0);
expect(total).to.equal(14);
```


Expand Down

0 comments on commit a8a3c00

Please sign in to comment.