test(ai): add unit tests for profileCache and appState (agent)

This commit is contained in:
google-labs-jules[bot] committed 2026-01-18 11:15:34 +00:00
1 parent a82c66b760
commit e11f44f2f2
4 files changed
+250 -2

No files matched your search

+3 -1
View File
@@ -167,7 +167,9 @@ class ProfileCache {
}
const normalized = {
name: profile.name || profile.display_name || "Unknown",
name:
sanitizeProfileString(profile.name || profile.display_name) ||
"Unknown",
picture:
sanitizeProfileMediaUrl(profile.picture || profile.image) ||
"assets/svg/default-profile.svg",