aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src/harness/helpers.ts
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-11-01 14:25:43 +0100
committerms <ms@taler.net>2021-11-01 14:48:49 +0100
commitea2acd1d3caa21f23127687214045a49d8fea0ad (patch)
treef8db5fca822b752e30b93306e7d207868d4cd915 /packages/taler-wallet-cli/src/harness/helpers.ts
parent404c8c8a73c53a8f5432db9838326753864b7136 (diff)
downloadwallet-core-ea2acd1d3caa21f23127687214045a49d8fea0ad.tar.xz
Testing harness.
No need to import modules dynamically, in order to provide the euFin implementation of the BankServiceInterface.
Diffstat (limited to 'packages/taler-wallet-cli/src/harness/helpers.ts')
-rw-r--r--packages/taler-wallet-cli/src/harness/helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/harness/helpers.ts b/packages/taler-wallet-cli/src/harness/helpers.ts
index 1dc38f0ff..59e41d1ad 100644
--- a/packages/taler-wallet-cli/src/harness/helpers.ts
+++ b/packages/taler-wallet-cli/src/harness/helpers.ts
@@ -63,7 +63,7 @@ export interface SimpleTestEnvironment {
}
export function getRandomIban(countryCode: string): string {
- return `${countryCode}715001051796${Math.floor(Math.random() * 1000000)}`;
+ return `${countryCode}715001051796${(Math.random().toString().substring(2, 8))}`
}
export function getRandomString(): string {