Password Validator
Simple password validator made with Javascript
Branch history
base-code
: a complex logic to password validator. In next branches, we'll add tests and refactor the coderefactor-1
: refactoring theminSize
function tohasMinLength
and creating unit testsrefactor-2
: refactoring thecheckNumbers
function tohasNumbers
and creating unit testsrefactor-3
: refactoring thecheckCapitalize
function tohasCapitalLetter
and creating unit testsrefactor-4
: refactoring thecheckSpecialChars
function tohasSpecialCharacter
and creating unit tests
hasSpecialCharacter
I developed a unit test for each special character, like this:
Stack
- node
12.22.12
- npm
6.7.0
- jest
28.1.1
đź‘©
Author
@laisfrigerio |
---|
đź“„
License
This project is licensed under the MIT License - see the LICENSE.md file for details