commit 5cb1f11cd75852c78db2f80c13417392a8ecd60e
parent 80d05cd048b92c1bbcda3b3a00946cc978974058
Author: Florian Dold <florian@dold.me>
Date: Thu, 27 Nov 2025 13:45:17 +0100
harness: fix formats in tops aml test
Diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/packages/taler-harness/src/integrationtests/test-tops-aml-pdf.ts b/packages/taler-harness/src/integrationtests/test-tops-aml-pdf.ts
@@ -67,12 +67,21 @@ export async function runTopsAmlPdfTest(t: GlobalTestState) {
{
const res = succeedOrThrow(
+ await exchangeClient.getAmlAccountsAsOtherFormat(officerAcc, "text/csv"),
+ );
+ const f = t.testDir + `/accounts.csv`;
+ fs.writeFileSync(f, Buffer.from(res));
+ console.log(`written to ${f}`);
+ }
+
+ {
+ const res = succeedOrThrow(
await exchangeClient.getAmlAccountsAsOtherFormat(
officerAcc,
- "application/pdf",
+ "application/json",
),
);
- const f = t.testDir + `/accounts.csv`;
+ const f = t.testDir + `/accounts.json`;
fs.writeFileSync(f, Buffer.from(res));
console.log(`written to ${f}`);
}