Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Jun 28, 2023
1 parent 6b31da9 commit 34e4cd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/app/index.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ describe('@llamafolio/tokens', async () => {
const tokens = await import('@llamafolio/tokens')
assert(tokens.chains.arbitrum.length > 0)
})

it('should retrieve token with symbol "DAI" from "ethereum"', async () => {
const { getToken } = await import('@llamafolio/tokens')
const token = getToken('ethereum', '0x6b175474e89094c44da98b954eedeac495271d0f')
assert(typeof token === 'object')
assert(token.symbol === 'DAI')
})
})
6 changes: 6 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ describe('@llamafolio/tokens', () => {
it('should have an array of > 0 tokens in arbitrum', () => {
assert(tokens.chains.arbitrum.length > 0)
})

it('should retrieve token with symbol "DAI" from "ethereum"', () => {
const token = tokens.getToken('ethereum', '0x6b175474e89094c44da98b954eedeac495271d0f')
assert(typeof token === 'object')
assert(token.symbol === 'DAI')
})
})

0 comments on commit 34e4cd6

Please sign in to comment.