From e9ed3b18672af919efa12364b97fd2b7efe21cd9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 13 Aug 2020 00:26:55 +0530 Subject: integration test for paywall flow --- .../src/test-refund-incremental.ts | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'packages/taler-integrationtests/src/test-refund-incremental.ts') diff --git a/packages/taler-integrationtests/src/test-refund-incremental.ts b/packages/taler-integrationtests/src/test-refund-incremental.ts index 0667b10d8..59a36b942 100644 --- a/packages/taler-integrationtests/src/test-refund-incremental.ts +++ b/packages/taler-integrationtests/src/test-refund-incremental.ts @@ -47,10 +47,9 @@ runTest(async (t: GlobalTestState) => { }, }); - let orderStatus = await merchant.queryPrivateOrderStatus( - "default", - orderResp.order_id, - ); + let orderStatus = await merchant.queryPrivateOrderStatus({ + orderId: orderResp.order_id, + }); t.assertTrue(orderStatus.order_status === "unpaid"); @@ -69,10 +68,9 @@ runTest(async (t: GlobalTestState) => { // Check if payment was successful. - orderStatus = await merchant.queryPrivateOrderStatus( - "default", - orderResp.order_id, - ); + orderStatus = await merchant.queryPrivateOrderStatus({ + orderId: orderResp.order_id, + }); t.assertTrue(orderStatus.order_status === "paid"); @@ -103,10 +101,9 @@ runTest(async (t: GlobalTestState) => { }); console.log(r); - orderStatus = await merchant.queryPrivateOrderStatus( - "default", - orderResp.order_id, - ); + orderStatus = await merchant.queryPrivateOrderStatus({ + orderId: orderResp.order_id, + }); t.assertTrue(orderStatus.order_status === "paid"); -- cgit v1.2.3