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

Test against valid and invalid US TIN prefixes #1408

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

dspinellis
Copy link
Contributor

@dspinellis dspinellis commented Aug 15, 2020

The existing isTaxId validation tests only checked the format,
while the validation code also tests for valid (US campus)
prefixes. The added tests, check that the prefix validations
actually work.

This has been done as a safety measure for the code's refactoring and the support of another locale. I will issue these in further PRs.

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)

The existing isTaxId validation tests only checked the format,
while the validation code also tests for valid (US campus)
prefixes.  The added tests, check that the prefix validations
actually work.
@codecov
Copy link

codecov bot commented Aug 15, 2020

Codecov Report

Merging #1408 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1408   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           95        95           
  Lines         1248      1248           
=========================================
  Hits          1248      1248           

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 ed86b0a...a605fae. Read the comment docs.

@profnandaa profnandaa merged commit db0a402 into validatorjs:master Aug 19, 2020
@profnandaa
Copy link
Member

Thanks for your contrib! 🎉

@profnandaa profnandaa mentioned this pull request Sep 18, 2020
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.

2 participants