summaryrefslogtreecommitdiff
path: root/js/process_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/process_test.ts')
-rw-r--r--js/process_test.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/process_test.ts b/js/process_test.ts
index 69b904b73..0f9f608e8 100644
--- a/js/process_test.ts
+++ b/js/process_test.ts
@@ -44,10 +44,10 @@ testPerm({ run: true }, async function runSuccess(): Promise<void> {
testPerm({ run: true }, async function runCommandFailedWithCode(): Promise<
void
> {
- let p = run({
+ const p = run({
args: ["python", "-c", "import sys;sys.exit(41 + 1)"]
});
- let status = await p.status();
+ const status = await p.status();
assertEquals(status.success, false);
assertEquals(status.code, 42);
assertEquals(status.signal, undefined);
@@ -133,8 +133,8 @@ testPerm({ run: true }, async function runStdinPiped(): Promise<void> {
assert(!p.stdout);
assert(!p.stderr);
- let msg = new TextEncoder().encode("hello");
- let n = await p.stdin.write(msg);
+ const msg = new TextEncoder().encode("hello");
+ const n = await p.stdin.write(msg);
assertEquals(n, msg.byteLength);
p.stdin.close();
@@ -307,7 +307,7 @@ testPerm({ run: true }, async function runClose(): Promise<void> {
p.close();
const data = new Uint8Array(10);
- let r = await p.stderr.read(data);
+ const r = await p.stderr.read(data);
assertEquals(r, Deno.EOF);
});