summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test/render.test.js
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2025-01-13 23:59:56 +0800
committerGravatar GitHub <noreply@github.com> 2025-01-13 23:59:56 +0800
commit0ef1613ea36439a76965290053ccc3f8afb9f400 (patch)
treef49eaa60143bf2d6ff546a9ffd688c25a87cbc85 /packages/integrations/markdoc/test/render.test.js
parent7a0855b264c22875d3d5921c2d60382c3260f79d (diff)
downloadastro-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.js2
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 */