mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-12-25 07:19:29 -05:00
test cash at atm form validation
This commit is contained in:
parent
eed5d523e5
commit
d367519592
@ -3718,6 +3718,11 @@ function testPaymentAccount(account: PaymentAccount, form: PaymentAccountForm) {
|
||||
expect(account.getTradeCurrenciesList().length).toEqual(1);
|
||||
expect(account.getTradeCurrenciesList()[0].getCode()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue());
|
||||
break;
|
||||
case PaymentAccountForm.FormId.CASH_AT_ATM:
|
||||
expect(account.getPaymentAccountPayload()!.getCashAtAtmAccountPayload()!.getExtraInfo()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.EXTRA_INFO).getValue());
|
||||
expect(account.getTradeCurrenciesList().length).toEqual(1);
|
||||
expect(account.getTradeCurrenciesList()[0].getCode()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue());
|
||||
break;
|
||||
default:
|
||||
throw new Error("Unhandled payment method type: " + form.getId());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user