diff --git a/docs/api/ShallowWrapper/reduceRight.md b/docs/api/ShallowWrapper/reduceRight.md index e4ac7b5d8..37c5c178c 100644 --- a/docs/api/ShallowWrapper/reduceRight.md +++ b/docs/api/ShallowWrapper/reduceRight.md @@ -36,8 +36,8 @@ function Foo() { ```jsx const wrapper = shallow(); -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); ```