From 143d923bb3e4458323e3b3418d6f0041e39c8fc5 Mon Sep 17 00:00:00 2001 From: karen-stepanyan <91897037+karen-stepanyan@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:09:15 +0400 Subject: [PATCH] fix alongside missing mock response (#3175) --- .../__snapshots__/adapter.test.ts.snap | 4 +-- .../alongside/test/integration/fixtures.ts | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/packages/sources/alongside/test/integration/__snapshots__/adapter.test.ts.snap b/packages/sources/alongside/test/integration/__snapshots__/adapter.test.ts.snap index 25744123da..e5169df015 100644 --- a/packages/sources/alongside/test/integration/__snapshots__/adapter.test.ts.snap +++ b/packages/sources/alongside/test/integration/__snapshots__/adapter.test.ts.snap @@ -3,9 +3,9 @@ exports[`execute portfolio api should return success 1`] = ` { "data": { - "result": 25954.286873113622, + "result": 41.03, }, - "result": 25954.286873113622, + "result": 41.03, "statusCode": 200, "timestamps": { "providerDataReceivedUnixMs": 1652198967193, diff --git a/packages/sources/alongside/test/integration/fixtures.ts b/packages/sources/alongside/test/integration/fixtures.ts index 738537747c..857e75f898 100644 --- a/packages/sources/alongside/test/integration/fixtures.ts +++ b/packages/sources/alongside/test/integration/fixtures.ts @@ -1331,3 +1331,29 @@ nock('https://mainnet.infura.io:443/v3/fake-infura-key') 'Origin', ], ) + +nock('https://amkt.infura-ipfs.io/') + .get(`/ipfs/QmYwevHbNyUMMpWKgP58qKhguhA6seCVv8TkkdYTRC6Ppr`) + .reply( + 200, + () => ({ + assets: { + AAVE: 1, + EOS: 2, + }, + }), + [ + 'Date', + 'Fri, 21 Oct 2022 06:39:28 GMT', + 'Content-Type', + 'application/json', + 'Content-Length', + '40', + 'Connection', + 'close', + 'Vary', + 'Accept-Encoding', + 'Vary', + 'Origin', + ], + )