wallet-core: make bank access API URL optional in runIntegrationTest
This commit is contained in:
parent
dbabb7b8d2
commit
fc413bb5ec
@ -874,7 +874,7 @@ export const codecForTestPayArgs = (): Codec<TestPayArgs> =>
|
||||
export interface IntegrationTestArgs {
|
||||
exchangeBaseUrl: string;
|
||||
bankBaseUrl: string;
|
||||
bankAccessApiBaseUrl: string;
|
||||
bankAccessApiBaseUrl?: string;
|
||||
merchantBaseUrl: string;
|
||||
merchantAuthToken?: string;
|
||||
amountToWithdraw: string;
|
||||
@ -889,7 +889,7 @@ export const codecForIntegrationTestArgs = (): Codec<IntegrationTestArgs> =>
|
||||
.property("merchantAuthToken", codecOptional(codecForString()))
|
||||
.property("amountToSpend", codecForAmountString())
|
||||
.property("amountToWithdraw", codecForAmountString())
|
||||
.property("bankAccessApiBaseUrl", codecForAmountString())
|
||||
.property("bankAccessApiBaseUrl", codecOptional(codecForAmountString()))
|
||||
.build("IntegrationTestArgs");
|
||||
|
||||
export interface AddExchangeRequest {
|
||||
|
@ -353,7 +353,7 @@ export async function runIntegrationTest(
|
||||
await withdrawTestBalance(ws, {
|
||||
amount: args.amountToWithdraw,
|
||||
bankBaseUrl: args.bankBaseUrl,
|
||||
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl,
|
||||
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl ?? args.bankBaseUrl,
|
||||
exchangeBaseUrl: args.exchangeBaseUrl,
|
||||
});
|
||||
await ws.runUntilDone();
|
||||
@ -382,7 +382,7 @@ export async function runIntegrationTest(
|
||||
await withdrawTestBalance(ws, {
|
||||
amount: Amounts.stringify(withdrawAmountTwo),
|
||||
bankBaseUrl: args.bankBaseUrl,
|
||||
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl,
|
||||
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl ?? args.bankBaseUrl,
|
||||
exchangeBaseUrl: args.exchangeBaseUrl,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user