Skip to content

Commit

Permalink
chore: add new supported assets (#3153)
Browse files Browse the repository at this point in the history
* chore: add new supported assets

* chore: changeset

* chore: pr-release

* chroe: remove pr release

* fix: asset test

* chore: fix assets test

* update e2e test

---------

Co-authored-by: Sérgio Torres <[email protected]>
Co-authored-by: Anderson Arboleya <[email protected]>
Co-authored-by: Peter Smith <[email protected]>
  • Loading branch information
4 people authored Sep 13, 2024
1 parent 3409c10 commit 6a920ee
Show file tree
Hide file tree
Showing 30 changed files with 805 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-ads-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/account": patch
---

chore: add new supported assets
24 changes: 7 additions & 17 deletions packages/account/src/providers/assets/assets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@
* @group node
* @group browser
*/
describe('assets', () => {
it('should have rawAssets without the icon resolved', async () => {
const { rawAssets } = await import('./assets');
describe('assets', async () => {
const { rawAssets, assets } = (await import('./assets'));

expect(rawAssets).toEqual([
expect.objectContaining({
'icon': 'eth.svg',
})
])
it.each(rawAssets)('$symbol should have icon not resolved to URL', ({ icon }) => {
expect(icon).not.toContain('/');
});

it('should have assets with the icon resolved', async () => {
const { assets } = await import('./assets');

expect(assets).toEqual([
expect.objectContaining({
'icon': 'https://cdn.fuel.network/assets/eth.svg',
})
])
it.each(assets)('$symbol should have icon resolved to URL', async ({ icon }) => {
expect(icon).toContain('https://cdn.fuel.network/assets');
});
})
});
Loading

0 comments on commit 6a920ee

Please sign in to comment.