1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/test_napi/mem_test.js
2024-01-04 20:34:51 +01:00

11 lines
336 B
JavaScript

// 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);
});