diff options
author | 2025-01-13 23:59:56 +0800 | |
---|---|---|
committer | 2025-01-13 23:59:56 +0800 | |
commit | 0ef1613ea36439a76965290053ccc3f8afb9f400 (patch) | |
tree | f49eaa60143bf2d6ff546a9ffd688c25a87cbc85 /packages/integrations/markdoc/test/render.test.js | |
parent | 7a0855b264c22875d3d5921c2d60382c3260f79d (diff) | |
download | astro-0ef1613ea36439a76965290053ccc3f8afb9f400.tar.gz astro-0ef1613ea36439a76965290053ccc3f8afb9f400.tar.zst astro-0ef1613ea36439a76965290053ccc3f8afb9f400.zip |
Fix component render in markdoc when `nodes.document.render` is `null` (#12967)
Diffstat (limited to 'packages/integrations/markdoc/test/render.test.js')
-rw-r--r-- | packages/integrations/markdoc/test/render.test.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/integrations/markdoc/test/render.test.js b/packages/integrations/markdoc/test/render.test.js index 364604405..4c9293288 100644 --- a/packages/integrations/markdoc/test/render.test.js +++ b/packages/integrations/markdoc/test/render.test.js @@ -137,6 +137,8 @@ function renderNullChecks(html) { const h2 = document.querySelector('h2'); assert.equal(h2.textContent, 'Post with render null'); assert.equal(h2.parentElement?.tagName, 'BODY'); + const divWrapper = document.querySelector('.div-wrapper'); + assert.equal(divWrapper.textContent, "I'm inside a div wrapper"); } /** @param {string} html */ |