From 67669eccc01f3f1d83693b3c9625a3a955ccfcf3 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 15 Aug 2022 10:19:20 -0400 Subject: [PATCH] nit: remove "describe('disabled')" --- .../mdx/test/mdx-syntax-highlighting.test.js | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/packages/integrations/mdx/test/mdx-syntax-highlighting.test.js b/packages/integrations/mdx/test/mdx-syntax-highlighting.test.js index 93ec3ff8d56f..fc81a7fe38c4 100644 --- a/packages/integrations/mdx/test/mdx-syntax-highlighting.test.js +++ b/packages/integrations/mdx/test/mdx-syntax-highlighting.test.js @@ -68,24 +68,22 @@ describe('MDX syntax highlighting', () => { }); }); - describe('disabled', () => { - it('supports custom highlighter - shiki-twoslash', async () => { - const fixture = await loadFixture({ - root: FIXTURE_ROOT, - markdown: { - syntaxHighlight: false, - }, - integrations: [mdx({ - remarkPlugins: [shikiTwoslash.default ?? shikiTwoslash], - })], - }); - await fixture.build(); + it('supports custom highlighter - shiki-twoslash', async () => { + const fixture = await loadFixture({ + root: FIXTURE_ROOT, + markdown: { + syntaxHighlight: false, + }, + integrations: [mdx({ + remarkPlugins: [shikiTwoslash.default ?? shikiTwoslash], + })], + }); + await fixture.build(); - const html = await fixture.readFile('/index.html'); - const { document } = parseHTML(html); + const html = await fixture.readFile('/index.html'); + const { document } = parseHTML(html); - const twoslashCodeBlock = document.querySelector('pre.shiki'); - expect(twoslashCodeBlock).to.not.be.null; - }); + const twoslashCodeBlock = document.querySelector('pre.shiki'); + expect(twoslashCodeBlock).to.not.be.null; }); });