Skip to content

Commit

Permalink
Fixed test case for getAvatar; url has moved
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Dec 1, 2021
1 parent 42784b8 commit 617714d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tests/src.ts/test-providers.ts
Expand Up @@ -1383,13 +1383,13 @@ describe("Resolve ENS avatar", function() {

[
{ title: "ERC-1155", name: "nick.eth", value: "https:/\/lh3.googleusercontent.com/hKHZTZSTmcznonu8I6xcVZio1IF76fq0XmcxnvUykC-FGuVJ75UPdLDlKJsfgVXH9wOSmkyHw0C39VAYtsGyxT7WNybjQ6s3fM3macE" },
{ title: "ERC-721", name: "brantly.eth", value: "https:/\/wrappedpunks.com:3000/images/punks/2430.png" },
{ title: "ERC-721", name: "brantly.eth", value: "https:/\/api.wrappedpunks.com/images/punks/2430.png" }
].forEach((test) => {
it(`Resolves avatar for ${ test.title }`, async function() {
this.timeout(60000);
const provider = ethers.getDefaultProvider("homestead", getApiKeys("homestead"));
const avatar = await provider.getAvatar(test.name);
assert.equal(test.value, avatar, "avatar url");
assert.equal(avatar, test.value, "avatar url");
});
});
});

0 comments on commit 617714d

Please sign in to comment.