summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-01 23:23:26 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-01 23:23:26 +0530
commitbaaa11c37f57c7a66dbbd6e1d306b2459d3c0fc4 (patch)
treec4873608ab1978979ec57a2eee72cd3250a8a658
parent38e6d519461cff32107b5eebfc217fd9276960db (diff)
downloadwallet-core-0.7.1-dev.24.tar.gz
wallet-core-0.7.1-dev.24.tar.bz2
wallet-core-0.7.1-dev.24.zip
fix bank API testv0.7.1-dev.24
-rw-r--r--packages/taler-integrationtests/src/harness.ts2
-rw-r--r--packages/taler-integrationtests/src/test-bank-api.ts4
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);
});