MCPcopy Index your code
hub / github.com/nodejs/node / assertEqualName

Function assertEqualName

test/parallel/test-console-methods.js:43–54  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

41};
42
43function assertEqualName(method) {
44 try {
45 assert.strictEqual(console[method].name, method);
46 } catch {
47 assert.strictEqual(console[method].name, alternateNames[method]);
48 }
49 try {
50 assert.strictEqual(newInstance[method].name, method);
51 } catch {
52 assert.strictEqual(newInstance[method].name, alternateNames[method]);
53 }
54}
55
56for (const method of methods) {
57 assertEqualName(method);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected