From 9692f589c687a2ba39a705ca4238cf123f444c61 Mon Sep 17 00:00:00 2001 From: ms Date: Sat, 13 Nov 2021 12:53:48 +0100 Subject: Bring euFin-based tests to pass. Note: timetravel-withdraw is now failing for both pybank and eufin. That is likely due to the wallet not refreshing expired denominations. --- packages/taler-util/src/taleruri.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/taleruri.ts b/packages/taler-util/src/taleruri.ts index 09c70682a..b487c73ae 100644 --- a/packages/taler-util/src/taleruri.ts +++ b/packages/taler-util/src/taleruri.ts @@ -57,6 +57,13 @@ export function parseWithdrawUri(s: string): WithdrawUriResult | undefined { const host = parts[0].toLowerCase(); const pathSegments = parts.slice(1, parts.length - 1); + /** + * The statement below does not tolerate a slash-ended URI. + * This results in (1) the withdrawalId being passed as the + * empty string, and (2) the bankIntegrationApi ending with the + * actual withdrawal operation ID. That can be fixed by + * trimming the parts-list. FIXME + */ const withdrawId = parts[parts.length - 1]; const p = [host, ...pathSegments].join("/"); -- cgit v1.2.3