Simple password validator made with Javascript ๐
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
I developed a unit test for each special character, like this:
- node
12.22.12
- npm
6.7.0
- jest
28.1.1
@laisfrigerio |
---|
This project is licensed under the MIT License - see the LICENSE.md file for details