From d384bd5c62198f1160119e60776350109a8ca7d3 Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 15 Feb 2021 20:28:09 +0100 Subject: TWG, payments reversal testing. Up to the point where the payments to be reversed get created via the native Sandbox API, instead of the add-incoming API, that got recently removed from the Nexus implementation. --- packages/taler-wallet-cli/src/integrationtests/helpers.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'packages/taler-wallet-cli/src/integrationtests/helpers.ts') diff --git a/packages/taler-wallet-cli/src/integrationtests/helpers.ts b/packages/taler-wallet-cli/src/integrationtests/helpers.ts index 0bd6750d9..bca983758 100644 --- a/packages/taler-wallet-cli/src/integrationtests/helpers.ts +++ b/packages/taler-wallet-cli/src/integrationtests/helpers.ts @@ -60,6 +60,16 @@ export interface SimpleTestEnvironment { wallet: WalletCli; } +export function getRandomIban(countryCode: string): string { + return `${countryCode}715001051796${(Math.random() * 100000000) + .toString() + .substring(0, 8)}`; +} + +export function getRandomString(): string { + return Math.random().toString(36).substring(2); +} + /** * Run a test case with a simple TESTKUDOS Taler environment, consisting * of one exchange, one bank and one merchant. -- cgit v1.2.3