(pubkey: string)
| 1787 | } |
| 1788 | |
| 1789 | function getMockProfileByPubkey(pubkey: string): RawProfile | null { |
| 1790 | const normalizedPubkey = pubkey.toLowerCase(); |
| 1791 | const existing = mockProfiles.get(normalizedPubkey); |
| 1792 | if (existing) { |
| 1793 | return existing; |
| 1794 | } |
| 1795 | |
| 1796 | if (!mockDisplayNames.has(normalizedPubkey)) { |
| 1797 | return null; |
| 1798 | } |
| 1799 | |
| 1800 | return { |
| 1801 | pubkey: normalizedPubkey, |
| 1802 | display_name: mockDisplayNames.get(normalizedPubkey) ?? null, |
| 1803 | avatar_url: null, |
| 1804 | about: null, |
| 1805 | nip05_handle: null, |
| 1806 | owner_pubkey: null, |
| 1807 | is_agent: mockAgentPubkeys.has(normalizedPubkey), |
| 1808 | }; |
| 1809 | } |
| 1810 | |
| 1811 | function listMockProfiles(): RawProfile[] { |
| 1812 | const pubkeys = new Set<string>([ |
no test coverage detected