From a8a3c0073486dcc470aef7bab4e056f8807a382c Mon Sep 17 00:00:00 2001 From: Tankunpeng Date: Mon, 25 Mar 2019 01:33:39 +0800 Subject: [PATCH] fix mount/reduceRight docs --- docs/api/ReactWrapper/reduceRight.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/ReactWrapper/reduceRight.md b/docs/api/ReactWrapper/reduceRight.md index 40db671e4..f1d1ef78d 100644 --- a/docs/api/ReactWrapper/reduceRight.md +++ b/docs/api/ReactWrapper/reduceRight.md @@ -36,8 +36,8 @@ function Foo() { ```jsx const wrapper = mount(); -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); ```