field-form icon indicating copy to clipboard operation
field-form copied to clipboard

support default error

Open yoyo837 opened this issue 4 years ago • 4 comments

validator 支持返回Promise.reject() ,目前必须Promise.reject(new Error('xxx'))

yoyo837 avatar Feb 25 '20 04:02 yoyo837

This pull request is being automatically deployed with ZEIT Now (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/react-component/field-form/bzdp5ivps ✅ Preview: https://field-form-git-fork-yoyo837-default-message.react-component.now.sh

vercel[bot] avatar Feb 25 '20 04:02 vercel[bot]

Codecov Report

Merging #88 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   99.87%   99.87%           
=======================================
  Files          13       13           
  Lines         806      806           
  Branches      172      173    +1     
=======================================
  Hits          805      805           
  Misses          1        1
Impacted Files Coverage Δ
src/utils/validateUtil.ts 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bc56d70...6aa97a9. Read the comment docs.

codecov[bot] avatar Feb 25 '20 04:02 codecov[bot]

来个 test case?

zombieJ avatar Mar 02 '20 06:03 zombieJ

Done

yoyo837 avatar Mar 02 '20 06:03 yoyo837