diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-09-08 01:27:18 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-07 12:27:18 -0400 |
commit | f12acdb50bd6afae21d8d033548c012d23ec2791 (patch) | |
tree | e61071f25a9dfe3ea853bcaea0ece7307a02bc73 /tests | |
parent | a205e8a3c2bf5ba72fe18bd7f224303338956c62 (diff) |
Update @typescript-eslint/* to v2.1.0 (#2878)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/subdir/redirects/redirect4.ts | 2 | ||||
-rw-r--r-- | tests/wasm_async.js | 4 | ||||
-rw-r--r-- | tests/workers_round_robin_bench.ts | 2 | ||||
-rw-r--r-- | tests/workers_startup_bench.ts | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/subdir/redirects/redirect4.ts b/tests/subdir/redirects/redirect4.ts index f31ad886e..45c65c5eb 100644 --- a/tests/subdir/redirects/redirect4.ts +++ b/tests/subdir/redirects/redirect4.ts @@ -1,2 +1,2 @@ import { redirect } from "./redirect1.ts"; -export const value: string = `4 imports ${redirect}`; +export const value = `4 imports ${redirect}`; diff --git a/tests/wasm_async.js b/tests/wasm_async.js index 7b521caee..98a178aad 100644 --- a/tests/wasm_async.js +++ b/tests/wasm_async.js @@ -16,8 +16,8 @@ const bytes = new Uint8Array([ ]); async function main() { - let wasm = await WebAssembly.instantiate(bytes); - let result = wasm.instance.exports.add(1, 3); + const wasm = await WebAssembly.instantiate(bytes); + const result = wasm.instance.exports.add(1, 3); console.log("1 + 3 =", result); if (result != 4) { throw Error("bad"); diff --git a/tests/workers_round_robin_bench.ts b/tests/workers_round_robin_bench.ts index 308ed05d4..7c34e75e5 100644 --- a/tests/workers_round_robin_bench.ts +++ b/tests/workers_round_robin_bench.ts @@ -38,7 +38,7 @@ function handleAsyncMsgFromWorker( async function main(): Promise<void> { const workers: Array<[Map<number, Resolvable<string>>, Worker]> = []; - for (var i = 1; i <= workerCount; ++i) { + for (let i = 1; i <= workerCount; ++i) { const worker = new Worker("./subdir/bench_worker.ts"); const promise = new Promise( (resolve): void => { diff --git a/tests/workers_startup_bench.ts b/tests/workers_startup_bench.ts index 2e529c01f..fbea4dc40 100644 --- a/tests/workers_startup_bench.ts +++ b/tests/workers_startup_bench.ts @@ -3,7 +3,7 @@ const workerCount = 50; async function bench(): Promise<void> { const workers: Worker[] = []; - for (var i = 1; i <= workerCount; ++i) { + for (let i = 1; i <= workerCount; ++i) { const worker = new Worker("./subdir/bench_worker.ts"); const promise = new Promise( (resolve): void => { |