Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivbau committed Dec 3, 2024
1 parent 74dc7c8 commit 75bf1f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/solanaFetcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ describe('SolanaFetcher', () => {
expect(tokenInfo?.decimals).toBe(9);
});

it('should return xAUR token', async () => {
const address = 'vPtS4ywrbEuufwPkBXsCYkeTBfpzCd6hF52p8kJGt9b';
const tokenInfo = await fetcher.fetch(address);
expect(tokenInfo).not.toBeNull();
expect(tokenInfo?.logoURI).not.toBeNull();
expect(tokenInfo?.symbol).toBe('VPTS');
expect(tokenInfo?.chainId).toBe(101);
expect(tokenInfo?.decimals).toBe(6);
});

it('should return PYTH token', async () => {
const address = 'HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3';
const tokenInfo = await fetcher.fetch(address);
Expand Down

0 comments on commit 75bf1f7

Please sign in to comment.