Skip to content

Commit

Permalink
tests: update ipfs gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Aug 20, 2024
1 parent 1187827 commit ccf578d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/actions/ens/getEnsAvatar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,20 @@ describe('args: gateways', async () => {
// uri: ipfs
record: 'ipfs://ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio',
expected:
'https://cloudflare-ipfs.com/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio',
'https://gateway.pinata.cloud/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio',
},
{
// uri: ipfs (no prefix)
record: 'Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio',
expected:
'https://cloudflare-ipfs.com/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio',
'https://gateway.pinata.cloud/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio',
},
])('$record -> $expected', async ({ record, expected }) => {
await setEnsAvatar(record)
await expect(
getEnsAvatar(client, {
name: 'vitalik.eth',
assetGatewayUrls: { ipfs: 'https://cloudflare-ipfs.com' },
assetGatewayUrls: { ipfs: 'https://gateway.pinata.cloud' },
}),
).resolves.toEqual(expected)
})
Expand Down

0 comments on commit ccf578d

Please sign in to comment.