forked from cardosofelipe/fast-next-template
Update tests for security and validation improvements
- Adjusted test case for duplicate email registration to assert 400 status and include generic error messaging to prevent user enumeration. - Annotated invalid phone number example with clarification on cleaning behavior. - Updated test password to meet enhanced security requirements.
This commit is contained in:
@@ -92,7 +92,7 @@ class TestPhoneNumberValidation:
|
||||
|
||||
# Completely invalid formats
|
||||
"++4412345678", # Double plus
|
||||
"()+41123456", # Misplaced parentheses
|
||||
# Note: "()+41123456" becomes "+41123456" after cleaning, which is valid
|
||||
|
||||
# Empty string
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user