Skip to content

Commit

Permalink
chore: update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Jan 12, 2024
1 parent b39bf91 commit e523cbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/token-metadata/test/unit/tokens.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,20 @@ describe('TokenMetadata', () => {
'factory/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/inj1q6kpxy6ar5lkxqudjvryarrrttmakwsvzkvcyh'
const CHZPeggyDenom = 'peggy0x3506424F91fD33084466F402d5D97f05F8e3b4AF'

test('fetches correct decimal value for cw20 format', () => {
test('fetches correct info for cw20 format', () => {
const tokenMeta = tokenFactory.toToken(CHZFactoryDenom) as Token

expect(tokenMeta.decimals).toBe(8)
expect(tokenMeta.name).toBe('Chiliz')
expect(tokenMeta.symbol).toBe('CHZ')
})

test('fetches correct decimal value for peggy format', () => {
test('fetches correct info for peggy format', () => {
const tokenMeta = tokenFactory.toToken(CHZPeggyDenom) as Token

expect(tokenMeta.decimals).toBe(18)
expect(tokenMeta.name).toBe('Chiliz')
expect(tokenMeta.symbol).toBe('CHZ')
})
})

Expand Down

0 comments on commit e523cbc

Please sign in to comment.