diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index 1fe18b71..5c83d137 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -4726,6 +4726,10 @@ function testPaymentAccount(account: PaymentAccount, form: PaymentAccountForm) { expect(account.getPaymentAccountPayload()!.getPaysafeAccountPayload()!.getEmail()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.EMAIL).getValue()); expect(account.getTradeCurrenciesList().map(currency => currency.getCode()).join(",")).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue()); break; + case PaymentAccountForm.FormId.WECHAT_PAY: + 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()); + break; default: throw new Error("Unhandled payment method type: " + form.getId()); }