Skip to content

Commit

Permalink
nit: remove "describe('disabled')"
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Aug 15, 2022
1 parent ac36328 commit 67669ec
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions packages/integrations/mdx/test/mdx-syntax-highlighting.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});

0 comments on commit 67669ec

Please sign in to comment.