diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-14 17:41:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 17:41:06 +0200 |
commit | e08ece2d2cc2c39b067dc271f52516bdee7c06ca (patch) | |
tree | 1da0e54feb757784902c4619218900110c37a2e3 /cli/tests | |
parent | cb5dd69dda4872533b05a4e9184f7e35f21c2010 (diff) |
fix(worker): make worker name spec compliant (#4746)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/subdir/test_worker.js | 4 | ||||
-rw-r--r-- | cli/tests/workers_test.ts | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cli/tests/subdir/test_worker.js b/cli/tests/subdir/test_worker.js index 02cd86eac..4260975a6 100644 --- a/cli/tests/subdir/test_worker.js +++ b/cli/tests/subdir/test_worker.js @@ -1,7 +1,7 @@ let thrown = false; -if (self.name !== "jsWorker") { - throw Error(`Bad worker name: ${self.name}, expected jsWorker`); +if (self.name !== "") { + throw Error(`Bad worker name: ${self.name}, expected empty string.`); } onmessage = function (e) { diff --git a/cli/tests/workers_test.ts b/cli/tests/workers_test.ts index d18186658..c51adcf75 100644 --- a/cli/tests/workers_test.ts +++ b/cli/tests/workers_test.ts @@ -34,7 +34,6 @@ Deno.test({ const jsWorker = new Worker("../tests/subdir/test_worker.js", { type: "module", - name: "jsWorker", }); const tsWorker = new Worker("../tests/subdir/test_worker.ts", { type: "module", |