diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-01 23:23:26 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-01 23:23:26 +0530 |
commit | baaa11c37f57c7a66dbbd6e1d306b2459d3c0fc4 (patch) | |
tree | c4873608ab1978979ec57a2eee72cd3250a8a658 /packages/taler-integrationtests | |
parent | 38e6d519461cff32107b5eebfc217fd9276960db (diff) |
fix bank API testv0.7.1-dev.24
Diffstat (limited to 'packages/taler-integrationtests')
-rw-r--r-- | packages/taler-integrationtests/src/harness.ts | 2 | ||||
-rw-r--r-- | 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 0beed3976..b46525267 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 1088ff6e6..56f43985e 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); }); |