node/test/addons-napi/test_general/testNapiStatus.js
Michael Dawson 9d70b43bdc test: consolidate n-api test addons - part2
It takes time to build each of the addons used to test n-api.
Consolidate a few of the smaller ones to save build time.

Get rid of one more small addon.

Backport-PR-URL: https://github.com/nodejs/node/pull/19447
PR-URL: https://github.com/nodejs/node/pull/13380
Reviewed-By: Jason Ginchereau <jasongin@microsoft.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2018-04-16 17:45:57 -04:00

8 lines
262 B
JavaScript

'use strict';
const common = require('../../common');
const addon = require(`./build/${common.buildType}/test_general`);
const assert = require('assert');
addon.createNapiError();
assert(addon.testNapiErrorCleanup(), 'napi_status cleaned up for second call');