Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Validation not working when using model less validation with a default value. #2355

Merged
merged 2 commits into from Sep 20, 2019

Conversation

Ricky-rick
Copy link
Contributor

First commit
The first commit is to fix the lint staged checks.
The test is removed because the _test function always returns an object. See:

if (!isObject(result)) {

Second commit
See #2353 for the issue.

Issues affected

closes #2353

@codecov
Copy link

codecov bot commented Sep 20, 2019

Codecov Report

Merging #2355 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2355      +/-   ##
==========================================
+ Coverage   95.14%   95.18%   +0.04%     
==========================================
  Files          44       44              
  Lines        1029     1039      +10     
  Branches      152      154       +2     
==========================================
+ Hits          979      989      +10     
  Misses         50       50
Impacted Files Coverage Δ
src/components/common.ts 96.82% <100%> (ø) ⬆️
src/components/withValidation.ts 100% <100%> (ø) ⬆️
src/utils/vnode.ts 96.87% <100%> (+0.32%) ⬆️

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 db98d68...7ad2969. Read the comment docs.

Copy link
Owner

@logaretm logaretm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is brilliant, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation not working when using model less validation with a default value.
2 participants