diff options
Diffstat (limited to 'tools/permission_prompt_test.ts')
-rw-r--r-- | tools/permission_prompt_test.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/permission_prompt_test.ts b/tools/permission_prompt_test.ts index a4c9e4362..617f8b0fc 100644 --- a/tools/permission_prompt_test.ts +++ b/tools/permission_prompt_test.ts @@ -5,7 +5,7 @@ const firstCheckFailedMessage = "First check failed"; const name = args[1]; const test = { - needsRead: async () => { + async needsRead(): Promise<void> { try { readFileSync("package.json"); } catch (e) { @@ -13,7 +13,7 @@ const test = { } readFileSync("package.json"); }, - needsWrite: () => { + needsWrite(): void { try { makeTempDirSync(); } catch (e) { @@ -21,7 +21,7 @@ const test = { } makeTempDirSync(); }, - needsEnv: () => { + needsEnv(): void { try { env().home; } catch (e) { @@ -29,7 +29,7 @@ const test = { } env().home; }, - needsNet: () => { + needsNet(): void { try { listen("tcp", "127.0.0.1:4540"); } catch (e) { @@ -37,9 +37,9 @@ const test = { } listen("tcp", "127.0.0.1:4541"); }, - needsRun: () => { + needsRun(): void { try { - const process = run({ + run({ args: [ "python", "-c", @@ -49,7 +49,7 @@ const test = { } catch (e) { console.log(firstCheckFailedMessage); } - const process = run({ + run({ args: [ "python", "-c", |