Skip to content

Commit

Permalink
Add token logo available test (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 authored Aug 14, 2024
1 parent 7ba7897 commit 951e86c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/web/src/__tests__/chain-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ describe.each(HelixChain.chains())("$name", ({ id, code }) => {
expect(getChainConfig(Number(id))?.network).toBe(code);
});
});

const tokenLogos = new Set<string>();
HelixChain.chains().forEach((chain) => {
chain.tokens.forEach((token) => tokenLogos.add(token.logo));
});
describe.each([...tokenLogos])("%s", (url) => {
it("Should be available", async () => {
const res = await fetch(url);
expect(res.status).not.toBe(404);
});
});

0 comments on commit 951e86c

Please sign in to comment.