diff options
author | Florian Dold <florian@dold.me> | 2021-06-17 13:34:59 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-17 13:35:08 +0200 |
commit | 5df7ddba97aa4482c781bfe8e87f60c3bc195ae4 (patch) | |
tree | 0956d310a83f0fafbb7d5a93001566f9035269a0 /packages/taler-wallet-cli/src/integrationtests/test-merchant-longpolling.ts | |
parent | 0b4976601fe2ecb0462fe72ae188b5cbba06d9cc (diff) | |
download | wallet-core-5df7ddba97aa4482c781bfe8e87f60c3bc195ae4.tar.xz |
use the new wallet core API interface in all tests
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-merchant-longpolling.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-merchant-longpolling.ts | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-merchant-longpolling.ts b/packages/taler-wallet-cli/src/integrationtests/test-merchant-longpolling.ts index 0f6ba654f..04888ecc1 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-longpolling.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-longpolling.ts @@ -25,7 +25,7 @@ import { ConfirmPayResultType, } from "@gnu-taler/taler-util"; import axios from "axios"; -import { URL } from "@gnu-taler/taler-wallet-core"; +import { URL, WalletApiOperation } from "@gnu-taler/taler-wallet-core"; /** * Run test for basic, bank-integrated withdrawal. @@ -104,9 +104,12 @@ export async function runMerchantLongpollingTest(t: GlobalTestState) { validateStatus: () => true, }); - let preparePayResp = await wallet.preparePay({ - talerPayUri: pubUnpaidStatus.taler_pay_uri, - }); + let preparePayResp = await wallet.client.call( + WalletApiOperation.PreparePayForUri, + { + talerPayUri: pubUnpaidStatus.taler_pay_uri, + }, + ); t.assertTrue(preparePayResp.status === PreparePayResultType.PaymentPossible); @@ -124,9 +127,12 @@ export async function runMerchantLongpollingTest(t: GlobalTestState) { publicOrderStatusResp.data, ); - const confirmPayRes = await wallet.confirmPay({ - proposalId: proposalId, - }); + const confirmPayRes = await wallet.client.call( + WalletApiOperation.ConfirmPay, + { + proposalId: proposalId, + }, + ); t.assertTrue(confirmPayRes.type === ConfirmPayResultType.Done); } |