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

Function testStaticEnumerables

test/objectwrap.js:234–259  ·  view source on GitHub ↗
(clazz)

Source from the content-addressed store, hash-verified

232 };
233
234 const testStaticEnumerables = (clazz) => {
235 // Object.keys
236 assert.deepEqual(Object.keys(clazz), [
237 'testStaticValue',
238 'testStaticGetter',
239 'testStaticGetSet',
240 'testStaticMethod',
241 'canUnWrap'
242 ]);
243
244 // for..in
245 {
246 const keys = [];
247 for (const key in clazz) {
248 keys.push(key);
249 }
250
251 assert.deepEqual(keys, [
252 'testStaticValue',
253 'testStaticGetter',
254 'testStaticGetSet',
255 'testStaticMethod',
256 'canUnWrap'
257 ]);
258 }
259 };
260
261 async function testFinalize (clazz) {
262 let finalizeCalled = false;

Callers 1

testClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected