fix bank API test
This commit is contained in:
parent
38e6d51946
commit
baaa11c37f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user