summaryrefslogtreecommitdiff
path: root/test_napi/env_test.js
blob: 0d509d6d6ba6bcbc5276fa2d9036078ebb572247 (plain)
1
2
3
4
5
6
7
8
9
10
// 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();
  assert(g === globalThis);
});