summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/css-head-mdx.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/mdx/test/css-head-mdx.test.js')
-rw-r--r--packages/integrations/mdx/test/css-head-mdx.test.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/integrations/mdx/test/css-head-mdx.test.js b/packages/integrations/mdx/test/css-head-mdx.test.js
index 4d4df5cec..96ee7c900 100644
--- a/packages/integrations/mdx/test/css-head-mdx.test.js
+++ b/packages/integrations/mdx/test/css-head-mdx.test.js
@@ -15,7 +15,6 @@ describe('Head injection w/ MDX', () => {
integrations: [mdx()],
// test suite was authored when inlineStylesheets defaulted to never
build: { inlineStylesheets: 'never' },
- experimental: { contentLayer: true },
});
});
@@ -24,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);
});
@@ -50,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);
});