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/harness.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/harness.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/harness.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts b/packages/taler-wallet-cli/src/integrationtests/harness.ts index 3a56f4cda..396a0d34e 100644 --- a/packages/taler-wallet-cli/src/integrationtests/harness.ts +++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts @@ -116,8 +116,10 @@ interface WaitResult { * Returns a new object being the current environment * plus the values given in the parameter. */ -export function extendEnv(extension: {[index: string]: string}): {[index: string]: string | undefined} { - let ret: {[index: string]: string | undefined} = {}; +export function extendEnv(extension: { + [index: string]: string; +}): { [index: string]: string | undefined } { + let ret: { [index: string]: string | undefined } = {}; for (let v in process.env) { ret[v] = process.env[v]; } @@ -190,7 +192,7 @@ export async function runCommand( logName: string, command: string, args: string[], - env: {[index: string]: string | undefined} = process.env + env: { [index: string]: string | undefined } = process.env, ): Promise<string> { console.log("runing command", shellescape([command, ...args])); return new Promise((resolve, reject) => { @@ -198,7 +200,7 @@ export async function runCommand( const proc = spawn(command, args, { stdio: ["inherit", "pipe", "pipe"], shell: false, - env: env + env: env, }); proc.stdout.on("data", (x) => { if (x instanceof Buffer) { @@ -340,14 +342,14 @@ export class GlobalTestState { command: string, args: string[], logName: string, - env: {[index: string] : string | undefined} = process.env + env: { [index: string]: string | undefined } = process.env, ): ProcessWrapper { console.log( `spawning process (${logName}): ${shellescape([command, ...args])}`, ); const proc = spawn(command, args, { stdio: ["inherit", "pipe", "pipe"], - env: env + env: env, }); console.log(`spawned process (${logName}) with pid ${proc.pid}`); proc.on("error", (err) => { |