Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add new supported assets #3153

Merged
merged 13 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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