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

Function assertPropertyIsNot

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

Source from the content-addressed store, hash-verified

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

Callers 1

testDefinePropertiesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected