Skip to content

Commit

Permalink
Fix: Update tests for ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
sandypockets committed Dec 16, 2023
1 parent e1b4319 commit cbce610
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/addHeadingIds.integration.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { processMarkdown } from '../dist/index.js';
import { processMarkdown } from '../dist/index.cjs';

describe('addHeadingIds with actual Markdown', () => {
it('should add IDs to headings in Markdown content', async () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/addHeadingIds.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import addHeadingIds from '../src/plugins/addHeadingIds';

describe('addHeadingIds', () => {
beforeEach(() => {
jest.clearAllMocks();
addHeadingIds()(mockTree);
});

Expand Down

0 comments on commit cbce610

Please sign in to comment.