Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3543972
D7045.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7045.diff
View Options
diff --git a/lib/utils/ens-cache.test.js b/lib/utils/ens-cache.test.js
--- a/lib/utils/ens-cache.test.js
+++ b/lib/utils/ens-cache.test.js
@@ -43,6 +43,10 @@
const ashoatAddr = '0x911413ef4127910d79303483f7470d095f399ca9';
const ashoatAvatar = 'https://ashoat.com/small_searching.png';
+const commalphaEthAddr = '0x727ad7F5134C03e88087a8019b80388b22aaD24d';
+const commalphaEthAvatar =
+ 'https://gateway.ipfs.io/ipfs/Qmb6CCsr5Hvv1DKr9Yt9ucbaK8Fz9MUP1kW9NTqAJhk7o8';
+
describe('getNameForAddress', () => {
it('should fail to return ashoat.eth if not in cache', async () => {
if (!process.env.ALCHEMY_API_KEY) {
@@ -231,4 +235,13 @@
timesGetAvatarCalledForSingleFetch,
);
});
+ it("should return commalpha.eth's avatar, an IPFS URI pointing to a JPEG", async () => {
+ if (!process.env.ALCHEMY_API_KEY) {
+ return;
+ }
+ const commalphaAvatarResult = await ensCache.getAvatarURIForAddress(
+ commalphaEthAddr,
+ );
+ expect(commalphaAvatarResult).toBe(commalphaEthAvatar);
+ });
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 11:43 AM (8 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2713049
Default Alt Text
D7045.diff (1 KB)
Attached To
Mode
D7045: [lib] Add test of ENS avatar set to IPFS URI which holds a JPEG
Attached
Detach File
Event Timeline
Log In to Comment