Skip to content

Commit

Permalink
chore: improving code coverage to 100% branches (#1624)
Browse files Browse the repository at this point in the history
* Improving code coverage to 100% branches

* Improving code coverage for isStrongPassword
  • Loading branch information
renanmontebelo committed Mar 12, 2021
1 parent deb1d1e commit 6262f62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib/isLicensePlate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/lib/isStrongPassword.js
Expand Up @@ -49,6 +49,7 @@ function analyzePassword(password) {
symbolCount: 0,
};
Object.keys(charMap).forEach((char) => {
/* istanbul ignore else */
if (upperCaseRegex.test(char)) {
analysis.uppercaseCount += charMap[char];
} else if (lowerCaseRegex.test(char)) {
Expand Down

0 comments on commit 6262f62

Please sign in to comment.