summaryrefslogtreecommitdiff
path: root/test_napi/mem_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test_napi/mem_test.js')
-rw-r--r--test_napi/mem_test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test_napi/mem_test.js b/test_napi/mem_test.js
new file mode 100644
index 000000000..bdbd395d3
--- /dev/null
+++ b/test_napi/mem_test.js
@@ -0,0 +1,11 @@
+// Copyright 2018-2023 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);
+});