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

Function testStaticMethod

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

Source from the content-addressed store, hash-verified

219 };
220
221 const testStaticMethod = (clazz) => {
222 clazz.testStaticVoidMethod(52);
223 assert.strictEqual(clazz.testStaticGetter, 52);
224 clazz[clazz.kTestStaticVoidMethodInternal](94);
225 assert.strictEqual(clazz.testStaticGetter, 94);
226 assert.strictEqual(clazz.testStaticMethod('method'), 'method static');
227 assert.strictEqual(clazz[clazz.kTestStaticMethodInternal]('method'), 'method static internal');
228 clazz.testStaticVoidMethodT('static method<>(const char*)');
229 assert.strictEqual(clazz.testStaticMethodT(), 'static method<>(const char*)');
230 clazz[clazz.kTestStaticVoidMethodTInternal]('static method<>(Symbol)');
231 assert.strictEqual(clazz[clazz.kTestStaticMethodTInternal](), 'static method<>(Symbol)');
232 };
233
234 const testStaticEnumerables = (clazz) => {
235 // Object.keys

Callers 1

testClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected