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

Function testHeading

tools/doc/deprecationCodes.mjs:25–35  ·  view source on GitHub ↗
(headingNode, expectedDeprecationCode)

Source from the content-addressed store, hash-verified

23};
24
25const testHeading = (headingNode, expectedDeprecationCode) => {
26 try {
27 assert.strictEqual(
28 headingNode?.children[0]?.value.substring(0, 9),
29 `${expectedDeprecationCode}: `,
30 'Ill-formed or out-of-order deprecation code.',
31 );
32 } catch (e) {
33 throw addMarkdownPathToErrorStack(e, headingNode);
34 }
35};
36
37const testYAMLComment = (commentNode) => {
38 try {

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…