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

Function assertPromise

unit-test/generate-binding-cc.js:48–48  ·  view source on GitHub ↗
(promise, expectedVal)

Source from the content-addressed store, hash-verified

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 = [{
51 dir: '',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected