1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-19 20:26:20 -05:00
denoland-deno/tests/napi/mem_test.js
2024-12-31 19:12:39 +00:00

11 lines
315 B
JavaScript

// Copyright 2018-2025 the Deno authors. 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);
});