From 69aaaefce30331bf40141e33d0e0aeae40708443 Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 1 Feb 2021 13:38:15 +0100 Subject: prettify code --- packages/taler-wallet-cli/src/integrationtests/harness.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'packages/taler-wallet-cli/src/integrationtests/harness.ts') 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 { 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) => { -- cgit v1.2.3