Skip to content

Commit

Permalink
💅 Update coingecko test (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse authored May 13, 2024
1 parent 873b997 commit 42eb191
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/coingecko/src/hooks/useCoingeckoTokenPrices.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import { renderHook } from '@testing-library/react-hooks'
import { useCoingeckoTokenPrices } from './useCoingeckoPrices'
import { expect } from 'chai'

const ADDRESSES = [
'0x0d8775f648430679a709e98d2b0cb6250d2887ef',
'0xe41d2489571d322189246dafa5ebde1f4699f498',
'0xf5dce57282a584d2746faf1593d3121fcac444dc',
]
const ADDRESSES = ['0x0d8775f648430679a709e98d2b0cb6250d2887ef']

describe('useCoingeckoTokenPrices', () => {
it('works', async () => {
Expand All @@ -15,7 +11,7 @@ describe('useCoingeckoTokenPrices', () => {
await waitForNextUpdate()
expect(result.error).to.be.undefined
expect(result.current).to.be.an('array')
expect(result.current?.length).to.eq(3)
expect(result.current?.length).to.eq(1)
expect(result.current![0]).to.be.a('number')
})
})

3 comments on commit 42eb191

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.