Skip to content

Update password validator to adhere to OWASP ASVS v4.0.3 recommendations #177

Update password validator to adhere to OWASP ASVS v4.0.3 recommendations

Update password validator to adhere to OWASP ASVS v4.0.3 recommendations #177

Triggered via push January 8, 2025 14:33
Status Failure
Total duration 2m 43s
Artifacts

ci-build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
src/lib/inputvalidation/passwordValidator.test.ts > email validator test > password without lowercase character should return false and error: src/lib/inputvalidation/passwordValidator.test.ts#L46
AssertionError: expected { valid: true } to deeply equal { valid: false, …(1) } - Expected + Received Object { - "message": "Password must contain a lowercase character", - "valid": false, + "valid": true, } ❯ src/lib/inputvalidation/passwordValidator.test.ts:46:20
src/lib/inputvalidation/passwordValidator.test.ts > email validator test > password without uppercase character should return false and error: src/lib/inputvalidation/passwordValidator.test.ts#L53
AssertionError: expected { valid: true } to deeply equal { valid: false, …(1) } - Expected + Received Object { - "message": "Password must contain a uppercase character", - "valid": false, + "valid": true, } ❯ src/lib/inputvalidation/passwordValidator.test.ts:53:20
src/lib/inputvalidation/passwordValidator.test.ts > email validator test > password without digit should return false and error: src/lib/inputvalidation/passwordValidator.test.ts#L60
AssertionError: expected { valid: true } to deeply equal { valid: false, …(1) } - Expected + Received Object { - "message": "Password must contain a digit", - "valid": false, + "valid": true, } ❯ src/lib/inputvalidation/passwordValidator.test.ts:60:20
src/lib/inputvalidation/passwordValidator.test.ts > email validator test > password without special character should return false and error: src/lib/inputvalidation/passwordValidator.test.ts#L67
AssertionError: expected { valid: true } to deeply equal { valid: false, …(1) } - Expected + Received Object { - "message": "Password must contain a special character", - "valid": false, + "valid": true, } ❯ src/lib/inputvalidation/passwordValidator.test.ts:67:20
test
Process completed with exit code 1.
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636