Skip to content

Commit 1841adb

Browse files
committed
fix: add missing test function
1 parent 3186b11 commit 1841adb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/test-server/test_functions_mapper.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -925,14 +925,15 @@ async def rp_name_fn_2(*_: Any, **__: Any):
925925

926926
return rp_name_fn_2
927927

928-
# if eval_str.startswith("webauthn.init.validateEmailAddress"):
928+
if eval_str.startswith("webauthn.init.validateEmailAddress"):
929+
if 'e=>"[email protected]"===e?void 0:"Invalid email"' in eval_str:
929930

930-
# def validate_email(*, email: str, tenant_id: str, user_context: UserContext):
931-
# if email == "[email protected]":
932-
# return None
933-
# return "Invalid email"
931+
async def validate_email_fn_1(*, email: str, **_: Any):
932+
if email == "[email protected]":
933+
return None
934+
return "Invalid email"
934935

935-
# return validate_email
936+
return validate_email_fn_1
936937

937938
if eval_str.startswith("webauthn.init.override.functions"):
938939
from supertokens_python.recipe.webauthn.recipe_implementation import (

0 commit comments

Comments
 (0)