diff options
author | 2024-08-28 22:50:50 +0800 | |
---|---|---|
committer | 2024-08-28 22:50:50 +0800 | |
commit | 93932432e7239a1d31c68ea916945302286268e9 (patch) | |
tree | 65e3ad3ed52562e15d7fdff401880010f47b917a /packages/integrations/mdx/test/css-head-mdx.test.js | |
parent | 4e5cc5aadd7d864bc5194ee67dc2ea74dbe80473 (diff) | |
download | astro-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.js | 6 |
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); }); |