Skip to content

Commit

Permalink
test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistevam committed Oct 23, 2024
1 parent dc11726 commit f88d5af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/e2e/mock-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const {
SWAPS_API_V2_BASE_URL,
TOKEN_API_BASE_URL,
} = require('../../shared/constants/swaps');
const { SECURITY_ALERTS_PROD_API_BASE_URL } = require('./tests/ppom/constants');
const {
DEFAULT_FEATURE_FLAGS_RESPONSE: BRIDGE_DEFAULT_FEATURE_FLAGS_RESPONSE,
} = require('./tests/bridge/constants');
Expand Down Expand Up @@ -169,6 +170,16 @@ async function setupMocking(
};
});

await server
.forGet(`${SECURITY_ALERTS_PROD_API_BASE_URL}/supportedChains`)
.thenCallback(() => {
console.log('>>>>> calling mock');
return {
statusCode: 200,
json: ['0x1'],
};
});

await server.forPost('https://api.segment.io/v1/batch').thenCallback(() => {
return {
statusCode: 200,
Expand Down

0 comments on commit f88d5af

Please sign in to comment.