summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/css-head-mdx.test.js
diff options
context:
space:
mode:
authorGravatar Matt Kane <m@mk.gg> 2025-01-07 17:07:33 +0000
committerGravatar GitHub <noreply@github.com> 2025-01-07 17:07:33 +0000
commitaeb7e1ac11ebf87847ed2fac89072aa2b4ac2aae (patch)
tree9db1f5a7ebc48549f3b3494171a918d30b11515d /packages/integrations/mdx/test/css-head-mdx.test.js
parent8b9d53037879cd7ca7bee4d20b4e6f08e984a7df (diff)
downloadastro-aeb7e1ac11ebf87847ed2fac89072aa2b4ac2aae.tar.gz
astro-aeb7e1ac11ebf87847ed2fac89072aa2b4ac2aae.tar.zst
astro-aeb7e1ac11ebf87847ed2fac89072aa2b4ac2aae.zip
fix(mdx): don't import image component when no images are used (#12921)
* fix(mdx): don't import image component when no images are used * Fix test * Fix test
Diffstat (limited to 'packages/integrations/mdx/test/css-head-mdx.test.js')
-rw-r--r--packages/integrations/mdx/test/css-head-mdx.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/mdx/test/css-head-mdx.test.js b/packages/integrations/mdx/test/css-head-mdx.test.js
index d55e2f52a..3123b22ce 100644
--- a/packages/integrations/mdx/test/css-head-mdx.test.js
+++ b/packages/integrations/mdx/test/css-head-mdx.test.js
@@ -28,7 +28,7 @@ describe('Head injection w/ MDX', () => {
const { document } = parseHTML(html);
const links = document.querySelectorAll('head link[rel=stylesheet]');
- assert.equal(links.length, 2);
+ assert.equal(links.length, 1);
const scripts = document.querySelectorAll('script[type=module]');
assert.equal(scripts.length, 1);
@@ -67,7 +67,7 @@ describe('Head injection w/ MDX', () => {
const $ = cheerio.load(html);
const headLinks = $('head link[rel=stylesheet]');
- assert.equal(headLinks.length, 2);
+ assert.equal(headLinks.length, 1);
const bodyLinks = $('body link[rel=stylesheet]');
assert.equal(bodyLinks.length, 0);
@@ -92,7 +92,7 @@ describe('Head injection w/ MDX', () => {
const $ = cheerio.load(html);
const headLinks = $('head link[rel=stylesheet]');
- assert.equal(headLinks.length, 2);
+ assert.equal(headLinks.length, 1);
const bodyLinks = $('body link[rel=stylesheet]');
assert.equal(bodyLinks.length, 0);