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 theminSizefunction tohasMinLengthand creating unit testsrefactor-2: refactoring thecheckNumbersfunction tohasNumbersand creating unit testsrefactor-3: refactoring thecheckCapitalizefunction tohasCapitalLetterand creating unit testsrefactor-4: refactoring thecheckSpecialCharsfunction tohasSpecialCharacterand 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
