Skip to content

Commit

Permalink
fix alongside missing mock response (#3175)
Browse files Browse the repository at this point in the history
  • Loading branch information
karen-stepanyan authored Feb 5, 2024
1 parent 5bb4038 commit 143d923
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
26 changes: 26 additions & 0 deletions packages/sources/alongside/test/integration/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
)

0 comments on commit 143d923

Please sign in to comment.