From 42eb19169700594255d37fae0fa5cec32fee4125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stankiewicz?= Date: Mon, 13 May 2024 14:13:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=20Update=20coingecko=20test=20(#11?= =?UTF-8?q?58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coingecko/src/hooks/useCoingeckoTokenPrices.test.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/coingecko/src/hooks/useCoingeckoTokenPrices.test.tsx b/packages/coingecko/src/hooks/useCoingeckoTokenPrices.test.tsx index cf9824ee7..1a86b271a 100644 --- a/packages/coingecko/src/hooks/useCoingeckoTokenPrices.test.tsx +++ b/packages/coingecko/src/hooks/useCoingeckoTokenPrices.test.tsx @@ -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 () => { @@ -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') }) })