summaryrefslogtreecommitdiff
path: root/cli/tests/workers_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /cli/tests/workers_test.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/tests/workers_test.ts')
-rw-r--r--cli/tests/workers_test.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/cli/tests/workers_test.ts b/cli/tests/workers_test.ts
index feab0f9c2..395b1da24 100644
--- a/cli/tests/workers_test.ts
+++ b/cli/tests/workers_test.ts
@@ -34,11 +34,11 @@ Deno.test({
const jsWorker = new Worker(
new URL("subdir/test_worker.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
const tsWorker = new Worker(
new URL("subdir/test_worker.ts", import.meta.url).href,
- { type: "module", name: "tsWorker" }
+ { type: "module", name: "tsWorker" },
);
tsWorker.onmessage = (e): void => {
@@ -70,7 +70,7 @@ Deno.test({
const nestedWorker = new Worker(
new URL("subdir/nested_worker.js", import.meta.url).href,
- { type: "module", name: "nested" }
+ { type: "module", name: "nested" },
);
nestedWorker.onmessage = (e): void => {
@@ -90,7 +90,7 @@ Deno.test({
const promise = createResolvable();
const throwingWorker = new Worker(
new URL("subdir/throwing_worker.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -112,7 +112,7 @@ Deno.test({
const fetchingWorker = new Worker(
new URL("subdir/fetching_worker.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -139,7 +139,7 @@ Deno.test({
const busyWorker = new Worker(
new URL("subdir/busy_worker.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
let testResult = 0;
@@ -172,7 +172,7 @@ Deno.test({
const racyWorker = new Worker(
new URL("subdir/racy_worker.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
racyWorker.onmessage = (e): void => {
@@ -200,7 +200,7 @@ Deno.test({
const worker = new Worker(
new URL("subdir/event_worker.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
worker.onmessage = (_e: Event): void => {
@@ -244,7 +244,7 @@ Deno.test({
const worker = new Worker(
new URL("subdir/event_worker_scope.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
worker.onmessage = (e: MessageEvent): void => {
@@ -273,11 +273,11 @@ Deno.test({
const regularWorker = new Worker(
new URL("subdir/non_deno_worker.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
const denoWorker = new Worker(
new URL("subdir/deno_worker.ts", import.meta.url).href,
- { type: "module", deno: true }
+ { type: "module", deno: true },
);
regularWorker.onmessage = (e): void => {
@@ -305,7 +305,7 @@ Deno.test({
const promise = createResolvable();
const w = new Worker(
new URL("subdir/worker_crypto.js", import.meta.url).href,
- { type: "module" }
+ { type: "module" },
);
w.onmessage = (e): void => {
assertEquals(e.data, true);