(headingNode, expectedDeprecationCode)
| 23 | }; |
| 24 | |
| 25 | const 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 | |
| 37 | const testYAMLComment = (commentNode) => { |
| 38 | try { |
no test coverage detected
searching dependent graphs…