summaryrefslogtreecommitdiff
path: root/js/process_test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-09-08 01:27:18 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-09-07 12:27:18 -0400
commitf12acdb50bd6afae21d8d033548c012d23ec2791 (patch)
treee61071f25a9dfe3ea853bcaea0ece7307a02bc73 /js/process_test.ts
parenta205e8a3c2bf5ba72fe18bd7f224303338956c62 (diff)
Update @typescript-eslint/* to v2.1.0 (#2878)
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);
});