summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/css-head-mdx.test.js
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2024-08-28 22:50:50 +0800
committerGravatar GitHub <noreply@github.com> 2024-08-28 22:50:50 +0800
commit93932432e7239a1d31c68ea916945302286268e9 (patch)
tree65e3ad3ed52562e15d7fdff401880010f47b917a /packages/integrations/mdx/test/css-head-mdx.test.js
parent4e5cc5aadd7d864bc5194ee67dc2ea74dbe80473 (diff)
downloadastro-93932432e7239a1d31c68ea916945302286268e9.tar.gz
astro-93932432e7239a1d31c68ea916945302286268e9.tar.zst
astro-93932432e7239a1d31c68ea916945302286268e9.zip
Make directRenderScript the default (#11791)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
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 083348015..96ee7c900 100644
--- a/packages/integrations/mdx/test/css-head-mdx.test.js
+++ b/packages/integrations/mdx/test/css-head-mdx.test.js
@@ -23,14 +23,14 @@ describe('Head injection w/ MDX', () => {
await fixture.build();
});
- it('only injects contents into head', async () => {
+ it('injects content styles into head', async () => {
const html = await fixture.readFile('/indexThree/index.html');
const { document } = parseHTML(html);
const links = document.querySelectorAll('head link[rel=stylesheet]');
assert.equal(links.length, 1);
- const scripts = document.querySelectorAll('head script[type=module]');
+ const scripts = document.querySelectorAll('script[type=module]');
assert.equal(scripts.length, 1);
});
@@ -49,7 +49,7 @@ describe('Head injection w/ MDX', () => {
const links = document.querySelectorAll('head link[rel=stylesheet]');
assert.equal(links.length, 1);
- const scripts = document.querySelectorAll('head script[type=module]');
+ const scripts = document.querySelectorAll('script[type=module]');
assert.equal(scripts.length, 1);
});