[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix bank API test
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix bank API test |
Date: |
Tue, 01 Sep 2020 19:53:31 +0200 |
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 baaa11c3 fix bank API test
baaa11c3 is described below
commit baaa11c37f57c7a66dbbd6e1d306b2459d3c0fc4
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Sep 1 23:23:26 2020 +0530
fix bank API test
---
packages/taler-integrationtests/src/harness.ts | 2 +-
packages/taler-integrationtests/src/test-bank-api.ts | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/taler-integrationtests/src/harness.ts
b/packages/taler-integrationtests/src/harness.ts
index 0beed397..b4652526 100644
--- a/packages/taler-integrationtests/src/harness.ts
+++ b/packages/taler-integrationtests/src/harness.ts
@@ -562,7 +562,7 @@ export enum CreditDebitIndicator {
}
export interface BankAccountBalanceResponse {
- balance_amount: AmountString;
+ amount: AmountString;
credit_debit_indicator: CreditDebitIndicator;
}
diff --git a/packages/taler-integrationtests/src/test-bank-api.ts
b/packages/taler-integrationtests/src/test-bank-api.ts
index 1088ff6e..56f43985 100644
--- a/packages/taler-integrationtests/src/test-bank-api.ts
+++ b/packages/taler-integrationtests/src/test-bank-api.ts
@@ -118,7 +118,7 @@ runTest(async (t: GlobalTestState) => {
console.log(bal);
// Check that we got the sign-up bonus.
- t.assertAmountEquals(bal.balance_amount, "TESTKUDOS:100");
+ t.assertAmountEquals(bal.amount, "TESTKUDOS:100");
t.assertTrue(bal.credit_debit_indicator === CreditDebitIndicator.Credit);
const res = createEddsaKeyPair();
@@ -131,6 +131,6 @@ runTest(async (t: GlobalTestState) => {
});
bal = await BankAccessApi.getAccountBalance(bank, bankUser);
- t.assertAmountEquals(bal.balance_amount, "TESTKUDOS:15");
+ t.assertAmountEquals(bal.amount, "TESTKUDOS:15");
t.assertTrue(bal.credit_debit_indicator === CreditDebitIndicator.Debit);
});
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated: fix bank API test,
gnunet <=