Update @typescript-eslint/* to v2.1.0 (#2878)

This commit is contained in:
Yoshiya Hinosawa 2019-09-08 01:27:18 +09:00 committed by Ryan Dahl
parent a205e8a3c2
commit f12acdb50b
31 changed files with 100 additions and 83 deletions

View file

@ -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);
});