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 d4cd2d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/e2e/mock-e2e.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const fs = require('fs');

const {
SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS,
} = require('../../shared/constants/security-provider');
const {
BRIDGE_DEV_API_BASE_URL,
BRIDGE_PROD_API_BASE_URL,
Expand All @@ -13,6 +16,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 +173,15 @@ async function setupMocking(
};
});

await server
.forGet(`${SECURITY_ALERTS_PROD_API_BASE_URL}/supportedChains`)
.thenCallback(() => {
return {
statusCode: 200,
json: SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS,
};
});

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

0 comments on commit d4cd2d2

Please sign in to comment.