diff --git a/test/addons-napi/test_general/test.js b/test/addons-napi/test_general/test.js index b9590391740fca..e9e2b9614ca34c 100644 --- a/test/addons-napi/test_general/test.js +++ b/test/addons-napi/test_general/test.js @@ -93,4 +93,6 @@ assert.strictEqual(test_general.finalizeWasCalled(), false, 'finalize callback was not called upon garbage collection'); // test napi_adjust_external_memory -assert.strictEqual(typeof test_general.testAdjustExternalMemory(), 'number'); +const adjustedValue = test_general.testAdjustExternalMemory(); +assert.strictEqual(typeof adjustedValue, 'number'); +assert(adjustedValue > 0);