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

Function testDeprecationType

tools/doc/deprecationCodes.mjs:49–59  ·  view source on GitHub ↗
(paragraphNode)

Source from the content-addressed store, hash-verified

47};
48
49const testDeprecationType = (paragraphNode) => {
50 try {
51 assert.strictEqual(
52 paragraphNode?.children[0]?.value?.substring(0, 6),
53 'Type: ',
54 'Missing deprecation type.',
55 );
56 } catch (e) {
57 throw addMarkdownPathToErrorStack(e, paragraphNode);
58 }
59};
60
61const tree = unified()
62 .use(remarkParse)

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…