diff options
Diffstat (limited to 'packages/taler-harness/src/harness')
-rw-r--r-- | packages/taler-harness/src/harness/harness.ts | 4 | ||||
-rw-r--r-- | packages/taler-harness/src/harness/libeufin-apis.ts | 14 | ||||
-rw-r--r-- | packages/taler-harness/src/harness/libeufin.ts | 12 | ||||
-rw-r--r-- | packages/taler-harness/src/harness/merchantApiTypes.ts | 1 | ||||
-rw-r--r-- | packages/taler-harness/src/harness/sync.ts | 2 |
5 files changed, 15 insertions, 18 deletions
diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index 5b72cbc06..134709541 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -1086,7 +1086,9 @@ export class ExchangeService implements ExchangeServiceInterface { * The modified exchange configuration will then be written to the * file system. */ - async modifyConfig(f: (config: Configuration) => Promise<void>): Promise<void> { + async modifyConfig( + f: (config: Configuration) => Promise<void>, + ): Promise<void> { const config = Configuration.load(this.configFilename); await f(config); config.write(this.configFilename); diff --git a/packages/taler-harness/src/harness/libeufin-apis.ts b/packages/taler-harness/src/harness/libeufin-apis.ts index 2f8e53cc9..a6abe3466 100644 --- a/packages/taler-harness/src/harness/libeufin-apis.ts +++ b/packages/taler-harness/src/harness/libeufin-apis.ts @@ -197,16 +197,13 @@ export namespace LibeufinSandboxApi { username: string, password: string, libeufinSandboxService: LibeufinSandboxServiceInterface, - iban: string|null = null, + iban: string | null = null, ) { - let url = new URL( - "testing/register", - libeufinSandboxService.baseUrl - ); + let url = new URL("testing/register", libeufinSandboxService.baseUrl); await axios.post(url.href, { username: username, password: password, - iban: iban + iban: iban, }); } // Need /demobanks/$id as the base URL @@ -218,10 +215,7 @@ export namespace LibeufinSandboxApi { password: string = "secret", ) { // baseUrl should already be pointed to one demobank. - let url = new URL( - "ebics/subscribers", - libeufinSandboxService.baseUrl - ); + let url = new URL("ebics/subscribers", libeufinSandboxService.baseUrl); await axios.post( url.href, { diff --git a/packages/taler-harness/src/harness/libeufin.ts b/packages/taler-harness/src/harness/libeufin.ts index 638c8ed90..05ca4d751 100644 --- a/packages/taler-harness/src/harness/libeufin.ts +++ b/packages/taler-harness/src/harness/libeufin.ts @@ -56,7 +56,6 @@ import { CreateNexusUserRequest, } from "../harness/libeufin-apis.js"; - const logger = new Logger("libeufin.ts"); export { LibeufinSandboxApi, LibeufinNexusApi }; @@ -451,7 +450,10 @@ export class LibeufinCli { ); } - async registerBankCustomer(username: string, password: string): Promise<void> { + async registerBankCustomer( + username: string, + password: string, + ): Promise<void> { const stdout = await sh( this.globalTestState, "libeufin-cli-registercustomer", @@ -817,7 +819,7 @@ export async function launchLibeufinServices( await libeufinNexus.start(); await libeufinNexus.pingUntilAvailable(); console.log("Libeufin services launched!"); - + for (let sb of sandboxUserBundle) { await LibeufinSandboxApi.createEbicsHost( libeufinSandbox, @@ -830,12 +832,12 @@ export async function launchLibeufinServices( await LibeufinSandboxApi.createDemobankAccount( sb.ebicsBankAccount.label, "password-unused", - { baseUrl: libeufinSandbox.baseUrl + "/demobanks/default/access-api/" } + { baseUrl: libeufinSandbox.baseUrl + "/demobanks/default/access-api/" }, ); await LibeufinSandboxApi.createDemobankEbicsSubscriber( sb.ebicsBankAccount.subscriber, sb.ebicsBankAccount.label, - { baseUrl: libeufinSandbox.baseUrl + "/demobanks/default/" } + { baseUrl: libeufinSandbox.baseUrl + "/demobanks/default/" }, ); } console.log("Sandbox user(s) / account(s) / subscriber(s): created"); diff --git a/packages/taler-harness/src/harness/merchantApiTypes.ts b/packages/taler-harness/src/harness/merchantApiTypes.ts index 2a59b0160..1985e9150 100644 --- a/packages/taler-harness/src/harness/merchantApiTypes.ts +++ b/packages/taler-harness/src/harness/merchantApiTypes.ts @@ -82,7 +82,6 @@ export const codecForPostOrderResponse = (): Codec<PostOrderResponse> => .property("token", codecOptional(codecForString())) .build("PostOrderResponse"); - export const codecForRefundDetails = (): Codec<RefundDetails> => buildCodecForObject<RefundDetails>() .property("reason", codecForString()) diff --git a/packages/taler-harness/src/harness/sync.ts b/packages/taler-harness/src/harness/sync.ts index a9e8de412..64c9acaef 100644 --- a/packages/taler-harness/src/harness/sync.ts +++ b/packages/taler-harness/src/harness/sync.ts @@ -115,5 +115,5 @@ export class SyncService { private globalState: GlobalTestState, private syncConfig: SyncConfig, private configFilename: string, - ) { } + ) {} } |