mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
|
// 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);
|
||
|
});
|