diff --git a/test_napi/env_test.js b/test_napi/env_test.js index 8ec12a5340..0d509d6d6b 100644 --- a/test_napi/env_test.js +++ b/test_napi/env_test.js @@ -6,7 +6,5 @@ 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); + assert(g === globalThis); }); diff --git a/test_napi/src/env.rs b/test_napi/src/env.rs index 620aeec297..c91bc5883e 100644 --- a/test_napi/src/env.rs +++ b/test_napi/src/env.rs @@ -15,14 +15,6 @@ extern "C" fn get_node_global( let mut result: napi_value = std::ptr::null_mut(); assert_napi_ok!(napi_get_global(env, &mut result)); - let mut r1: napi_value = std::ptr::null_mut(); - assert_napi_ok!(napi_get_named_property( - env, - result, - "Buffer\0".as_ptr() as _, - &mut r1 - )); - result }