From 53104cd7b0c74ce409ecd1b8f6aeb4191dc0913c Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Thu, 19 Jun 2025 09:16:21 -0400 Subject: [PATCH] test wechat pay grpc api --- src/HavenoClient.test.ts | 4 ++++ 1 file changed, 4 insertions(+) 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()); }