mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-10 23:01:10 +00:00
test(ai): add unit tests for profileCache and appState (agent)
This commit is contained in:
1 parent
a82c66b760
commit
e11f44f2f2
4 files changed
+250
-2
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user