MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / assertPropertyIs

Function assertPropertyIs

test/object/object.js:8–12  ·  view source on GitHub ↗
(obj, key, attribute)

Source from the content-addressed store, hash-verified

6
7function test (binding) {
8 function assertPropertyIs (obj, key, attribute) {
9 const propDesc = Object.getOwnPropertyDescriptor(obj, key);
10 assert.ok(propDesc);
11 assert.ok(propDesc[attribute]);
12 }
13
14 function assertPropertyIsNot (obj, key, attribute) {
15 const propDesc = Object.getOwnPropertyDescriptor(obj, key);

Callers 1

testDefinePropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected