gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: harness: test known bank acco


From: gnunet
Subject: [taler-wallet-core] branch master updated: harness: test known bank account replacement
Date: Fri, 22 Nov 2024 21:17:11 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 4c3832b29 harness: test known bank account replacement
4c3832b29 is described below

commit 4c3832b29ab7ccf251c5f87a99ce0344ce133e3e
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Nov 22 21:17:00 2024 +0100

    harness: test known bank account replacement
---
 .../src/integrationtests/test-known-accounts.ts      | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/packages/taler-harness/src/integrationtests/test-known-accounts.ts 
b/packages/taler-harness/src/integrationtests/test-known-accounts.ts
index 0c5c5ca47..7b5d2fb61 100644
--- a/packages/taler-harness/src/integrationtests/test-known-accounts.ts
+++ b/packages/taler-harness/src/integrationtests/test-known-accounts.ts
@@ -84,6 +84,26 @@ export async function runKnownAccountsTest(t: 
GlobalTestState) {
     const e = accts2.accounts.find((x) => x.alias == "Foo");
     t.assertDeepEqual(e?.currencies, ["CHF"]);
   }
+
+  // Test replacement
+
+  await walletClient.call(WalletApiOperation.AddKnownBankAccount, {
+    replacePaytoUri: "payto://iban/FOOBAR",
+    paytoUri: "payto://iban/QUUX",
+    alias: "Foo",
+    currencies: ["CHF"],
+  });
+
+  {
+    const accts2 = await walletClient.call(
+      WalletApiOperation.ListKnownBankAccounts,
+      {},
+    );
+    console.log(`accounts after replace: ${j2s(accts2)}`);
+    t.assertDeepEqual(accts2.accounts.length, 2);
+    const e = accts2.accounts.find((x) => x.alias == "Foo");
+    t.assertDeepEqual(e?.paytoUri, "payto://iban/QUUX");
+  }
 }
 
 runKnownAccountsTest.suites = ["wallet"];

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]