summaryrefslogtreecommitdiff
path: root/test_napi/env_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test_napi/env_test.js')
-rw-r--r--test_napi/env_test.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test_napi/env_test.js b/test_napi/env_test.js
new file mode 100644
index 000000000..8ec12a534
--- /dev/null
+++ b/test_napi/env_test.js
@@ -0,0 +1,12 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
+import { assert, loadTestLibrary } from "./common.js";
+
+const env = loadTestLibrary();
+
+Deno.test("napi get global", function () {
+ const g = env.testNodeGlobal();
+ // Note: global is a mock object in the tests.
+ // See common.js
+ assert(g.Buffer);
+});