taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 2223b3a6c72163038bee56087f2f576bb1651bc3
parent 0fedb95414a1296796e62b71a64fd6759f4aca6e
Author: Iván Ávalos <avalos@disroot.org>
Date:   Thu,  4 Apr 2024 13:21:50 -0600

harness: refactor env variable

Diffstat:
Mpackages/taler-harness/src/harness/helpers.ts | 4+---
Mpackages/taler-harness/src/integrationtests/test-payment.ts | 5+----
2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/packages/taler-harness/src/harness/helpers.ts b/packages/taler-harness/src/harness/helpers.ts @@ -105,8 +105,6 @@ export interface EnvOptions { mixedAgeRestriction?: boolean; - withLibeufin?: boolean; - additionalExchangeConfig?(e: ExchangeService): void; additionalMerchantConfig?(m: MerchantService): void; additionalBankConfig?(b: BankService): void; @@ -430,7 +428,7 @@ export async function createSimpleTestkudosEnvironmentV3( httpPort: 8082, }; - const bank: BankService = opts.withLibeufin === true + const bank: BankService = process.env["WITH_LIBEUFIN"] === "1" ? await LibeufinBankService.create(t, bc) : await FakebankService.create(t, bc); diff --git a/packages/taler-harness/src/integrationtests/test-payment.ts b/packages/taler-harness/src/integrationtests/test-payment.ts @@ -23,7 +23,6 @@ import { GlobalTestState } from "../harness/harness.js"; import { createSimpleTestkudosEnvironmentV3, makeTestPaymentV2, - withdrawViaBankV2, withdrawViaBankV3, } from "../harness/helpers.js"; @@ -34,9 +33,7 @@ export async function runPaymentTest(t: GlobalTestState) { // Set up test environment const { bankClient, walletClient, exchange, merchant } = - await createSimpleTestkudosEnvironmentV3(t, undefined, { - withLibeufin: process.env["WITH_LIBEUFIN"] === "1", - }); + await createSimpleTestkudosEnvironmentV3(t); // Withdraw digital cash into the wallet.