summaryrefslogtreecommitdiff
path: root/test_napi/env_test.js
blob: 8ec12a5340c38f261eb7b22899f541ace0c06d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.

import { assert, loadTestLibrary } from "./common.js";

const env = loadTestLibrary();

Deno.test("napi get global", function () {
  const g = env.testNodeGlobal();
  // Note: global is a mock object in the tests.
  // See common.js
  assert(g.Buffer);
});