mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-13 08:19:47 -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().length).toEqual(1);
|
||||||
expect(account.getTradeCurrenciesList()[0].getCode()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue());
|
expect(account.getTradeCurrenciesList()[0].getCode()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue());
|
||||||
break;
|
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:
|
default:
|
||||||
throw new Error("Unhandled payment method type: " + form.getId());
|
throw new Error("Unhandled payment method type: " + form.getId());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user