From 8c6d147e6ae40a1f92aba1aedc0d95ef437dd4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 15 Feb 2021 14:48:47 +0100 Subject: chore: Reorganise workers tests (#9493) --- cli/tests/subdir/worker_error.ts | 5 ----- cli/tests/subdir/worker_location.ts | 6 ------ cli/tests/subdir/worker_types.ts | 4 ---- 3 files changed, 15 deletions(-) delete mode 100644 cli/tests/subdir/worker_error.ts delete mode 100644 cli/tests/subdir/worker_location.ts delete mode 100644 cli/tests/subdir/worker_types.ts (limited to 'cli/tests/subdir') diff --git a/cli/tests/subdir/worker_error.ts b/cli/tests/subdir/worker_error.ts deleted file mode 100644 index 495971090..000000000 --- a/cli/tests/subdir/worker_error.ts +++ /dev/null @@ -1,5 +0,0 @@ -function foo() { - throw new Error("foo"); -} - -foo(); diff --git a/cli/tests/subdir/worker_location.ts b/cli/tests/subdir/worker_location.ts deleted file mode 100644 index 89fa83036..000000000 --- a/cli/tests/subdir/worker_location.ts +++ /dev/null @@ -1,6 +0,0 @@ -onmessage = function (): void { - postMessage( - `${location.href}, ${location instanceof WorkerLocation}`, - ); - close(); -}; diff --git a/cli/tests/subdir/worker_types.ts b/cli/tests/subdir/worker_types.ts deleted file mode 100644 index b67a3b782..000000000 --- a/cli/tests/subdir/worker_types.ts +++ /dev/null @@ -1,4 +0,0 @@ -// deno-lint-ignore require-await -self.onmessage = async (_msg: MessageEvent) => { - self.postMessage("hello"); -}; -- cgit v1.2.3