summaryrefslogtreecommitdiff
path: root/tests/napi/mem_test.js
blob: bee8c194ea6538e0e5a3c75711a275a2c3d30852 (plain)
1
2
3
4
5
6
7
8
9
10
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);
});