summaryrefslogtreecommitdiff
path: root/tests/napi/mem_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/napi/mem_test.js')
-rw-r--r--tests/napi/mem_test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/napi/mem_test.js b/tests/napi/mem_test.js
new file mode 100644
index 000000000..bee8c194e
--- /dev/null
+++ b/tests/napi/mem_test.js
@@ -0,0 +1,11 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+
+import { assert, loadTestLibrary } from "./common.js";
+
+const mem = loadTestLibrary();
+
+Deno.test("napi adjust external memory", function () {
+ const adjusted = mem.adjust_external_memory();
+ assert(typeof adjusted === "number");
+ assert(adjusted > 0);
+});