diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-05-13 14:49:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 14:49:11 +0900 |
commit | 2a0c66484098ba35c1b31d4dc6380887b6eb9da4 (patch) | |
tree | 5c01b215882c3335853a6e1b36089d1bf1695c30 /cli/tests/unit_node/worker_threads_test.ts | |
parent | 68c0fcb157bb47bbf58bcdcecf59d237fb84f201 (diff) |
chore: fix & update node compat config (#19106)
Diffstat (limited to 'cli/tests/unit_node/worker_threads_test.ts')
-rw-r--r-- | cli/tests/unit_node/worker_threads_test.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/unit_node/worker_threads_test.ts b/cli/tests/unit_node/worker_threads_test.ts new file mode 100644 index 000000000..17de7cca1 --- /dev/null +++ b/cli/tests/unit_node/worker_threads_test.ts @@ -0,0 +1,13 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. + +import { assertEquals } from "../../../test_util/std/testing/asserts.ts"; +import workerThreads from "node:worker_threads"; + +Deno.test("[node/worker_threads] BroadcastChannel is exported", () => { + assertEquals<unknown>(workerThreads.BroadcastChannel, BroadcastChannel); +}); + +Deno.test("[node/worker_threads] MessageChannel are MessagePort are exported", () => { + assertEquals<unknown>(workerThreads.MessageChannel, MessageChannel); + assertEquals<unknown>(workerThreads.MessagePort, MessagePort); +}); |