diff options
author | Florian Dold <florian@dold.me> | 2024-06-30 23:44:15 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-30 23:44:15 +0200 |
commit | 023b8f576b22155bf6116f0fed19aa4c7c1397c9 (patch) | |
tree | ea8e7fd4d2e79e8d4be32e8824075b96c0641186 /packages/taler-harness/src | |
parent | ac268c9215a4eafd882aa174b565dc90960941f0 (diff) | |
download | wallet-core-023b8f576b22155bf6116f0fed19aa4c7c1397c9.tar.xz |
wallet-core: use taler-terms-version header instead of etag
Diffstat (limited to 'packages/taler-harness/src')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-merchant-categories.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-merchant-categories.ts b/packages/taler-harness/src/integrationtests/test-merchant-categories.ts index a6ddc31e2..7bf96a723 100644 --- a/packages/taler-harness/src/integrationtests/test-merchant-categories.ts +++ b/packages/taler-harness/src/integrationtests/test-merchant-categories.ts @@ -17,7 +17,7 @@ /** * Imports. */ -import { URL } from "@gnu-taler/taler-util"; +import { URL, j2s } from "@gnu-taler/taler-util"; import { ExchangeService, GlobalTestState, @@ -97,6 +97,15 @@ export async function runMerchantCategoriesTest(t: GlobalTestState) { console.log("status", res.status); console.log(await res.json()); t.assertTrue(res.status >= 200 && res.status < 300); + + { + const posUrl = new URL("private/pos", merchant.makeInstanceBaseUrl()); + const res = await harnessHttpLib.fetch(posUrl.href, { + method: "GET", + }); + const posJson = await res.json(); + console.log(j2s(posJson)); + } } runMerchantCategoriesTest.suites = ["merchant"]; |