From 7a22f65033d7ad0714c37486f1480b0e82414bb3 Mon Sep 17 00:00:00 2001 From: b4rtaz Date: Tue, 23 Jan 2024 12:21:31 +0100 Subject: [PATCH] fix: test. --- packages/solApi/integration/test/getTokenPrice.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/solApi/integration/test/getTokenPrice.test.ts b/packages/solApi/integration/test/getTokenPrice.test.ts index 0b887dd7b5..b9a8ff2f4f 100644 --- a/packages/solApi/integration/test/getTokenPrice.test.ts +++ b/packages/solApi/integration/test/getTokenPrice.test.ts @@ -18,7 +18,7 @@ describe('Moralis SolApi', () => { address: '4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R', }); - expect(result.exchangeAddress.address).toBe('675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'); + expect(result.exchangeAddress?.address).toBe('675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'); expect(result.exchangeName).toBe('Raydium'); expect(result.usdPrice).toBe(0.9965); expect(result.nativePrice?.decimals).toBe(9);