diff options
author | MS <ms@taler.net> | 2021-02-01 13:38:15 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2021-02-01 13:38:15 +0100 |
commit | 69aaaefce30331bf40141e33d0e0aeae40708443 (patch) | |
tree | 48cdc2401abb7662baca8615a87a5ec7b8f94fe1 /packages/taler-wallet-cli/src/integrationtests/libeufin.ts | |
parent | c3ca3aa7fcf7065669ed2069cd5acad9e472e2ae (diff) | |
download | wallet-core-69aaaefce30331bf40141e33d0e0aeae40708443.tar.gz wallet-core-69aaaefce30331bf40141e33d0e0aeae40708443.tar.bz2 wallet-core-69aaaefce30331bf40141e33d0e0aeae40708443.zip |
prettify code
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/libeufin.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/libeufin.ts | 73 |
1 files changed, 26 insertions, 47 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts index b4208801d..0e6fcfef7 100644 --- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts +++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts @@ -24,7 +24,7 @@ import { pingProc, ProcessWrapper, runCommand, - extendEnv + extendEnv, } from "./harness"; export interface LibeufinSandboxServiceInterface { @@ -70,13 +70,11 @@ export class LibeufinSandboxService implements LibeufinSandboxServiceInterface { async start(): Promise<void> { this.sandboxProc = this.globalTestState.spawnService( "libeufin-sandbox", - [ - "serve", - "--port", - `${this.sandboxConfig.httpPort}` - ], + ["serve", "--port", `${this.sandboxConfig.httpPort}`], "libeufin-sandbox", - extendEnv({LIBEUFIN_SANDBOX_DB_CONNECTION: this.sandboxConfig.databaseJdbcUri}) + extendEnv({ + LIBEUFIN_SANDBOX_DB_CONNECTION: this.sandboxConfig.databaseJdbcUri, + }), ); } @@ -110,24 +108,19 @@ export class LibeufinNexusService { this.globalTestState, "libeufin-nexus-superuser", "libeufin-nexus", - [ - "superuser", - "admin", - "--password", - "test" - ], - extendEnv({LIBEUFIN_NEXUS_DB_CONNECTION: this.nexusConfig.databaseJdbcUri}) + ["superuser", "admin", "--password", "test"], + extendEnv({ + LIBEUFIN_NEXUS_DB_CONNECTION: this.nexusConfig.databaseJdbcUri, + }), ); this.nexusProc = this.globalTestState.spawnService( "libeufin-nexus", - [ - "serve", - "--port", - `${this.nexusConfig.httpPort}`, - ], + ["serve", "--port", `${this.nexusConfig.httpPort}`], "libeufin-nexus", - extendEnv({LIBEUFIN_NEXUS_DB_CONNECTION: this.nexusConfig.databaseJdbcUri}) + extendEnv({ + LIBEUFIN_NEXUS_DB_CONNECTION: this.nexusConfig.databaseJdbcUri, + }), ); } @@ -284,7 +277,7 @@ export interface PostNexusPermissionRequest { resourceType: string; resourceId: string; permissionName: string; - } + }; } export namespace LibeufinNexusApi { @@ -411,20 +404,13 @@ export namespace LibeufinNexusApi { req: CreateNexusUserRequest, ) { const baseUrl = libeufinNexusService.baseUrl; - let url = new URL( - `/users`, - baseUrl, - ); - await axios.post( - url.href, - req, - { - auth: { - username: "admin", - password: "test", - }, + let url = new URL(`/users`, baseUrl); + await axios.post(url.href, req, { + auth: { + username: "admin", + password: "test", }, - ); + }); } export async function postPermission( @@ -432,20 +418,13 @@ export namespace LibeufinNexusApi { req: PostNexusPermissionRequest, ) { const baseUrl = libeufinNexusService.baseUrl; - let url = new URL( - `/permissions`, - baseUrl, - ); - await axios.post( - url.href, - req, - { - auth: { - username: "admin", - password: "test", - }, + let url = new URL(`/permissions`, baseUrl); + await axios.post(url.href, req, { + auth: { + username: "admin", + password: "test", }, - ); + }); } export async function createTwgFacade( |