mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
f60720090c
Moving some additional NAPI and. FFI tests out of the tree root.
11 lines
336 B
JavaScript
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);
|
|
});
|