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

Function assertPropertyIsNot

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

Source from the content-addressed store, hash-verified

12 }
13
14 function assertPropertyIsNot (obj, key, attribute) {
15 const propDesc = Object.getOwnPropertyDescriptor(obj, key);
16 assert.ok(propDesc);
17 assert.ok(!propDesc[attribute]);
18 }
19
20 function testDefineProperties (nameType) {
21 const obj = {};

Callers 1

testDefinePropertiesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected