Skip to content

Commit

Permalink
n-api: adds function to adjust external memory
Browse files Browse the repository at this point in the history
Improved unit tests

Fixes:
#13928
  • Loading branch information
Chris Young committed Aug 25, 2017
1 parent fd40a07 commit 81bc985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/addons-napi/test_general/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 81bc985

Please sign in to comment.