assert.doesNotThrow()

assert.doesNotThrow(block[, error][, message]) Asserts that the function block does not throw an error. See assert.throws() for more details. When assert.doesNotThrow() is called, it will immediately call the block function. If an error is thrown and it is the same type as that specified by the error parameter, then an AssertionError is thrown. If the error is of a different type, or if the error parameter is undefined, the error is propagated back to the caller. The following, for instance,

assert.deepStrictEqual()

assert.deepStrictEqual(actual, expected[, message]) Generally identical to assert.deepEqual() with two exceptions. First, primitive values are compared using the strict equality operator ( === ). Second, object comparisons include a strict equality check of their prototypes. const assert = require('assert'); assert.deepEqual({a:1}, {a:'1'}); // OK, because 1 == '1' assert.deepStrictEqual({a:1}, {a:'1'}); // AssertionError: { a: 1 } deepStrictEqual { a: '1' } // because 1 !== '1' using

assert.deepEqual()

assert.deepEqual(actual, expected[, message]) Tests for deep equality between the actual and expected parameters. Primitive values are compared with the equal comparison operator ( == ). Only enumerable "own" properties are considered. The deepEqual() implementation does not test object prototypes, attached symbols, or non-enumerable properties. This can lead to some potentially surprising results. For example, the following example does not throw an AssertionError because the properties on th

assert()

assert(value[, message]) An alias of assert.ok() . const assert = require('assert'); assert(true); // OK assert(1); // OK assert(false); // throws "AssertionError: false == true" assert(0); // throws "AssertionError: 0 == true" assert(false, 'it\'s false'); // throws "AssertionError: it's false"

agent.sockets

agent.sockets An object which contains arrays of sockets currently in use by the Agent. Do not modify.

agent.requests

agent.requests An object which contains queues of requests that have not yet been assigned to sockets. Do not modify.

agent.maxSockets

agent.maxSockets By default set to Infinity. Determines how many concurrent sockets the agent can have open per origin. Origin is either a 'host:port' or 'host:port:localAddress' combination.

agent.maxFreeSockets

agent.maxFreeSockets By default set to 256. For Agents supporting HTTP KeepAlive, this sets the maximum number of sockets that will be left open in the free state.

agent.getName()

agent.getName(options) Get a unique name for a set of request options, to determine whether a connection can be reused. In the http agent, this returns host:port:localAddress. In the https agent, the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options that determine socket reusability.

agent.freeSockets

agent.freeSockets An object which contains arrays of sockets currently awaiting use by the Agent when HTTP KeepAlive is used. Do not modify.