fix bank API test

This commit is contained in:
Florian Dold 2020-09-01 23:23:26 +05:30
parent 38e6d51946
commit baaa11c37f
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 3 additions and 3 deletions

View File

@ -562,7 +562,7 @@ export enum CreditDebitIndicator {
} }
export interface BankAccountBalanceResponse { export interface BankAccountBalanceResponse {
balance_amount: AmountString; amount: AmountString;
credit_debit_indicator: CreditDebitIndicator; credit_debit_indicator: CreditDebitIndicator;
} }

View File

@ -118,7 +118,7 @@ runTest(async (t: GlobalTestState) => {
console.log(bal); console.log(bal);
// Check that we got the sign-up bonus. // 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); t.assertTrue(bal.credit_debit_indicator === CreditDebitIndicator.Credit);
const res = createEddsaKeyPair(); const res = createEddsaKeyPair();
@ -131,6 +131,6 @@ runTest(async (t: GlobalTestState) => {
}); });
bal = await BankAccessApi.getAccountBalance(bank, bankUser); 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); t.assertTrue(bal.credit_debit_indicator === CreditDebitIndicator.Debit);
}); });