diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/lsp_tests.rs | 1 | ||||
-rw-r--r-- | tests/integration/node_unit_tests.rs | 1 | ||||
-rw-r--r-- | tests/unit_node/wasi_test.ts | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/integration/lsp_tests.rs b/tests/integration/lsp_tests.rs index fd6f7e484..a0d12da3a 100644 --- a/tests/integration/lsp_tests.rs +++ b/tests/integration/lsp_tests.rs @@ -7663,6 +7663,7 @@ fn lsp_completions_node_specifier() { "node:util/types", "node:v8", "node:vm", + "node:wasi", "node:worker_threads", "node:zlib", ], diff --git a/tests/integration/node_unit_tests.rs b/tests/integration/node_unit_tests.rs index 74ed293e3..22c0f8110 100644 --- a/tests/integration/node_unit_tests.rs +++ b/tests/integration/node_unit_tests.rs @@ -96,6 +96,7 @@ util::unit_test_factory!( util_test, v8_test, vm_test, + wasi_test, worker_threads_test, zlib_test ] diff --git a/tests/unit_node/wasi_test.ts b/tests/unit_node/wasi_test.ts new file mode 100644 index 000000000..6af2d4b1d --- /dev/null +++ b/tests/unit_node/wasi_test.ts @@ -0,0 +1,7 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +import wasi from "node:wasi"; +import { assertThrows } from "@std/assert"; + +Deno.test("[node/wasi] - WASI should throw (not implemented)", () => { + assertThrows(() => new wasi.WASI()); +}); |