mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-21 06:00:33 -04:00
test alipay grpc api
This commit is contained in:
parent
53104cd7b0
commit
8293dc34b6
1 changed files with 4 additions and 0 deletions
|
@ -4730,6 +4730,10 @@ function testPaymentAccount(account: PaymentAccount, form: PaymentAccountForm) {
|
||||||
expect(account.getPaymentAccountPayload()!.getWeChatPayAccountPayload()!.getAccountNr()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.ACCOUNT_NR).getValue());
|
expect(account.getPaymentAccountPayload()!.getWeChatPayAccountPayload()!.getAccountNr()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.ACCOUNT_NR).getValue());
|
||||||
expect(account.getTradeCurrenciesList().map(currency => currency.getCode()).join(",")).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue());
|
expect(account.getTradeCurrenciesList().map(currency => currency.getCode()).join(",")).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue());
|
||||||
break;
|
break;
|
||||||
|
case PaymentAccountForm.FormId.ALI_PAY:
|
||||||
|
expect(account.getPaymentAccountPayload()!.getAliPayAccountPayload()!.getAccountNr()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.ACCOUNT_NR).getValue());
|
||||||
|
expect(account.getTradeCurrenciesList().map(currency => currency.getCode()).join(",")).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…
Add table
Add a link
Reference in a new issue