summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/css-head-mdx.test.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-02-02 14:21:32 -0500
committerGravatar GitHub <noreply@github.com> 2023-02-02 14:21:32 -0500
commit9bec6bc410f324a41c67e5d185fa86f78d7625f2 (patch)
tree257f3f75e904d709e7c047bffa242a727ad8d725 /packages/integrations/mdx/test/css-head-mdx.test.js
parent8c80e78dd5ebfe0528390f42222aadf4786a90fe (diff)
downloadastro-9bec6bc410f324a41c67e5d185fa86f78d7625f2.tar.gz
astro-9bec6bc410f324a41c67e5d185fa86f78d7625f2.tar.zst
astro-9bec6bc410f324a41c67e5d185fa86f78d7625f2.zip
Prevent eager rendering of head content in multi-level MDX layout (#6107)
* Prevent eager rendering of head content in multi-level MDX layout * Adding a changeset * Remove old comment * Keep track of slot position as well
Diffstat (limited to 'packages/integrations/mdx/test/css-head-mdx.test.js')
-rw-r--r--packages/integrations/mdx/test/css-head-mdx.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/mdx/test/css-head-mdx.test.js b/packages/integrations/mdx/test/css-head-mdx.test.js
index a6492c3ba..2b1dcdfe7 100644
--- a/packages/integrations/mdx/test/css-head-mdx.test.js
+++ b/packages/integrations/mdx/test/css-head-mdx.test.js
@@ -23,10 +23,10 @@ describe('Head injection w/ MDX', () => {
const html = await fixture.readFile('/indexThree/index.html');
const { document } = parseHTML(html);
- const links = document.querySelectorAll('link[rel=stylesheet]');
+ const links = document.querySelectorAll('head link[rel=stylesheet]');
expect(links).to.have.a.lengthOf(1);
- const scripts = document.querySelectorAll('script[type=module]');
+ const scripts = document.querySelectorAll('head script[type=module]');
expect(scripts).to.have.a.lengthOf(1);
});
});