idTest() — astro Function Reference
Architecture documentation for the idTest() function in headings.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 7af6538a_2a11_3d53_a9ca_fdb0d5268cd5["idTest()"] 8eb7f338_d427_d8cf_1cd1_0effe3fd6b64["headings.test.js"] 7af6538a_2a11_3d53_a9ca_fdb0d5268cd5 -->|defined in| 8eb7f338_d427_d8cf_1cd1_0effe3fd6b64 style 7af6538a_2a11_3d53_a9ca_fdb0d5268cd5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/markdoc/test/headings.test.js lines 206–210
function idTest(document) {
for (const [depth, info] of Object.entries(depthToHeadingMap)) {
assert.equal(document.querySelector(`h${depth}`)?.getAttribute('id'), info.slug);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does idTest() do?
idTest() is a function in the astro codebase, defined in packages/integrations/markdoc/test/headings.test.js.
Where is idTest() defined?
idTest() is defined in packages/integrations/markdoc/test/headings.test.js at line 206.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free