mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-20 13:38:56 -04:00
test swish payment account over grpc api
This commit is contained in:
parent
8293dc34b6
commit
8976ebe28e
1 changed files with 6 additions and 0 deletions
|
@ -4734,6 +4734,12 @@ function testPaymentAccount(account: PaymentAccount, form: PaymentAccountForm) {
|
|||
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;
|
||||
case PaymentAccountForm.FormId.SWISH:
|
||||
expect(account.getPaymentAccountPayload()!.getSwishAccountPayload()!.getHolderName()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.HOLDER_NAME).getValue());
|
||||
expect(account.getPaymentAccountPayload()!.getSwishAccountPayload()!.getMobileNr()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.MOBILE_NR).getValue());
|
||||
expect(account.getTradeCurrenciesList().length).toEqual(1);
|
||||
expect(account.getTradeCurrenciesList()[0].getCode()).toEqual("SEK");
|
||||
break;
|
||||
default:
|
||||
throw new Error("Unhandled payment method type: " + form.getId());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue