summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/subdir/redirects/redirect4.ts2
-rw-r--r--tests/wasm_async.js4
-rw-r--r--tests/workers_round_robin_bench.ts2
-rw-r--r--tests/workers_startup_bench.ts2
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 => {