mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-20 05:30:04 -04:00
test amazon e-gift card payment account over grpc api
This commit is contained in:
parent
05b2c639ff
commit
73d1458fbd
1 changed files with 5 additions and 0 deletions
|
@ -4749,6 +4749,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("USD");
|
expect(account.getTradeCurrenciesList()[0].getCode()).toEqual("USD");
|
||||||
break;
|
break;
|
||||||
|
case PaymentAccountForm.FormId.AMAZON_GIFT_CARD:
|
||||||
|
expect(account.getPaymentAccountPayload()!.getAmazonGiftCardAccountPayload()!.getEmailOrMobileNr()!).toEqual(getFormField(form, PaymentAccountFormField.FieldId.EMAIL_OR_MOBILE_NR).getValue());
|
||||||
|
expect(account.getPaymentAccountPayload()!.getAmazonGiftCardAccountPayload()!.getCountryCode()!).toEqual(getFormField(form, PaymentAccountFormField.FieldId.COUNTRY).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