taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 18c8cebbcd85e7345607572be4c66dff940ad776
parent ec0ebb09e2829a6819c497a683aef9842d7ca25a
Author: Florian Dold <florian@dold.me>
Date:   Wed,  4 Aug 2021 13:45:24 +0200

add test to righ test suite

Diffstat:
Mpackages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts b/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts @@ -25,12 +25,12 @@ import { WalletCli, ExchangeServiceInterface, } from "./harness"; +import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers"; import { - createSimpleTestkudosEnvironment, - withdrawViaBank, - SimpleTestEnvironment, -} from "./helpers"; -import { URL, durationFromSpec, PreparePayResultType } from "@gnu-taler/taler-util"; + URL, + durationFromSpec, + PreparePayResultType, +} from "@gnu-taler/taler-util"; import axios from "axios"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; @@ -138,10 +138,11 @@ async function testRefundApiWithFulfillmentUrl( `orders/${orderId}`, merchant.makeInstanceBaseUrl(), ); - + console.log(`requesting order status via '${publicOrderStatusUrl.href}'`); publicOrderStatusResp = await axios.get(publicOrderStatusUrl.href, { validateStatus: () => true, }); + console.log(publicOrderStatusResp.status); console.log(publicOrderStatusResp.data); // We didn't give any authentication, so we should get a fulfillment URL back t.assertTrue(publicOrderStatusResp.status === 202); @@ -293,3 +294,5 @@ export async function runMerchantRefundApiTest(t: GlobalTestState) { merchant, }); } + +runMerchantRefundApiTest.suites = ["merchant"];