summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/js_unit_tests.rs1
-rw-r--r--cli/tests/unit/symbol_test.ts11
2 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/js_unit_tests.rs b/cli/tests/integration/js_unit_tests.rs
index 00e26cc91..cb843ee4e 100644
--- a/cli/tests/integration/js_unit_tests.rs
+++ b/cli/tests/integration/js_unit_tests.rs
@@ -84,6 +84,7 @@ util::unit_test_factory!(
stdio_test,
streams_test,
structured_clone_test,
+ symbol_test,
symlink_test,
sync_test,
test_util,
diff --git a/cli/tests/unit/symbol_test.ts b/cli/tests/unit/symbol_test.ts
new file mode 100644
index 000000000..54db7f5ba
--- /dev/null
+++ b/cli/tests/unit/symbol_test.ts
@@ -0,0 +1,11 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+import { assert } from "./test_util.ts";
+
+// Test that `Symbol.metadata` is defined. This file can be removed when V8
+// supports `Symbol.metadata` natively.
+
+Deno.test(
+ function symbolMetadataIsDefined() {
+ assert(typeof Symbol.metadata === "symbol");
+ },
+);