We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The fixtures array includes objects having format
fixtures
{ locale: string, valid: [], invalid: [], }
Then all the valid and invalid arrays are combined as
valid
invalid
// Test fixtures fixtures.forEach((fixture) => { if (fixture.valid) allValid = allValid.concat(fixture.valid); if (fixture.invalid) allInvalid = allInvalid.concat(fixture.invalid); test({ validator: 'isIdentityCard', valid: fixture.valid, invalid: fixture.invalid, args: [fixture.locale], }); });
The issue is that we should remove the allInvalid array since a card number invalid in one locale may be valid in some other locale.
allInvalid
Would be happy to make a PR :)
The text was updated successfully, but these errors were encountered:
Sure, please go ahead and make the PR, thanks! 👍
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The
fixtures
array includes objects having formatThen all the
valid
andinvalid
arrays are combined asThe issue is that we should remove the
allInvalid
array since a card number invalid in one locale may be valid in some other locale.Would be happy to make a PR :)
The text was updated successfully, but these errors were encountered: