MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / setArgsAndCall

Function setArgsAndCall

unit-test/generate-binding-cc.js:47–47  ·  view source on GitHub ↗
(fn, filterCondition)

Source from the content-addressed store, hash-verified

45 const assert = require('assert');
46
47 const setArgsAndCall = (fn, filterCondition) => { process.argv = [null, null, ...filterCondition.split(' ')]; return fn(); };
48 const assertPromise = (promise, expectedVal) => promise.then((val) => assert.deepEqual(val, expectedVal)).catch(console.log);
49
50 const expectedVal = [{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected