Skip to content

Commit f48fa6f

Browse files
committed
fix: resolve mdx version changes
1 parent 2f803cf commit f48fa6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/remark-plugins/remark-cleanup-readme/index.test.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import mdx from '@mdx-js/mdx';
1+
import { compileSync } from '@mdx-js/mdx';
22
import CleanupReadme from './index.mjs';
33
describe('cleanup readme', () => {
44
it('should clean up div[align="center"] block without paragraph', () => {
@@ -12,7 +12,7 @@ describe('cleanup readme', () => {
1212
</a>
1313
</div>
1414
`;
15-
const html = mdx.sync(mdxText, {
15+
const html = compileSync(mdxText, {
1616
remarkPlugins: [CleanupReadme],
1717
});
1818
expect(html).toMatchSnapshot();
@@ -32,7 +32,7 @@ describe('cleanup readme', () => {
3232
</p>
3333
</div>
3434
`;
35-
const html = mdx.sync(mdxText, {
35+
const html = compileSync(mdxText, {
3636
remarkPlugins: [CleanupReadme],
3737
});
3838
expect(html).toMatchSnapshot();
@@ -67,7 +67,7 @@ describe('cleanup readme', () => {
6767
</div>
6868
</div>
6969
`;
70-
const html = mdx.sync(mdxText, {
70+
const html = compileSync(mdxText, {
7171
remarkPlugins: [CleanupReadme],
7272
});
7373
expect(html).toMatchSnapshot();

0 commit comments

Comments
 (0)