MCPcopy Create free account
hub / github.com/nodejs/node / testInitialized

Function testInitialized

test/pseudo-tty/test-async-wrap-getasyncid-tty.js:33–38  ·  view source on GitHub ↗
(req, ctor_name)

Source from the content-addressed store, hash-verified

31}
32
33function testInitialized(req, ctor_name) {
34 assert.strictEqual(typeof req.getAsyncId, 'function');
35 assert(Number.isSafeInteger(req.getAsyncId()));
36 assert(req.getAsyncId() > 0);
37 assert.strictEqual(req.constructor.name, ctor_name);
38}
39
40{
41 const ttyFd = common.getTTYfd();

Calls 2

getAsyncIdMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected