Skip to content

Commit

Permalink
fix: resolve mdx version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucohny committed Nov 23, 2023
1 parent 581326f commit 80f5661
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/remark-plugins/remark-cleanup-readme/index.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mdx from '@mdx-js/mdx';
import { compileSync } from '@mdx-js/mdx';
import CleanupReadme from './index.mjs';
describe('cleanup readme', () => {
it('should clean up div[align="center"] block without paragraph', () => {
Expand All @@ -12,7 +12,7 @@ describe('cleanup readme', () => {
</a>
</div>
`;
const html = mdx.sync(mdxText, {
const html = compileSync(mdxText, {
remarkPlugins: [CleanupReadme],
});
expect(html).toMatchSnapshot();
Expand All @@ -32,7 +32,7 @@ describe('cleanup readme', () => {
</p>
</div>
`;
const html = mdx.sync(mdxText, {
const html = compileSync(mdxText, {
remarkPlugins: [CleanupReadme],
});
expect(html).toMatchSnapshot();
Expand Down Expand Up @@ -67,7 +67,7 @@ describe('cleanup readme', () => {
</div>
</div>
`;
const html = mdx.sync(mdxText, {
const html = compileSync(mdxText, {
remarkPlugins: [CleanupReadme],
});
expect(html).toMatchSnapshot();
Expand Down

0 comments on commit 80f5661

Please sign in to comment.