fix(tests): align maskEmail test assertions with new less-aggressive masking behavior

Updated mask-email.test.mjs and model-sync-route.test.mjs to match
the revised maskEmail function that preserves full domain names for
account differentiation (die********@gmail.com vs old di*********@g****.com).
This commit is contained in:
diegosouzapw
2026-04-11 12:09:20 -03:00
parent 86fc7841b8
commit e89015649e
3 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
* to prevent identity exposure in dashboards and logs.
*
* @example
* maskEmail("diego.souza@gmail.com") // "di*********@g****.com"
* maskEmail("diego.souza@gmail.com") // "die********@gmail.com"
* maskEmail("a@b.com") // "a@b.com" (too short to mask)
*/
export function maskEmail(email: string | null | undefined, visibleChars = 3): string {