summaryrefslogtreecommitdiff
path: root/tests/unit_node/wasi_test.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-08-21 20:33:52 -0700
committerGitHub <noreply@github.com>2024-08-22 09:03:52 +0530
commit2531204a3476b0f49bd4ecec68a94efb2908412a (patch)
tree1ecb439efe18fbb1c82c912b788264ce8e9a72fa /tests/unit_node/wasi_test.ts
parent3314a0ceb8f874986d5da9f36f683740bd813750 (diff)
fix(ext/node): register `node:wasi` built-in (#25134)
Fixes https://github.com/denoland/deno/issues/23531
Diffstat (limited to 'tests/unit_node/wasi_test.ts')
-rw-r--r--tests/unit_node/wasi_test.ts7
1 files changed, 7 insertions, 0 deletions
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());
+});