Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test
  • Loading branch information
kellyjosephprice committed May 21, 2024
commit e35eefad50af889d0546fdd7e9d07d2449c11208
15 changes: 12 additions & 3 deletions __tests__/compilers/callout.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mdast, mdx } from '../../index';

describe('callouts compiler', () => {
it('compiles code tabs', () => {
it('compiles callouts', () => {
const markdown = `> 🚧 It works!
>
> And, it no longer deletes your content!
Expand All @@ -10,7 +10,7 @@ describe('callouts compiler', () => {
expect(mdx(mdast(markdown))).toBe(markdown);
});

it('compiles code tabs with no heading', () => {
it('compiles callouts with no heading', () => {
const markdown = `> 🚧
>
> And, it no longer deletes your content!
Expand All @@ -19,10 +19,19 @@ describe('callouts compiler', () => {
expect(mdx(mdast(markdown))).toBe(markdown);
});

it('compiles code tabs with no heading or body!?', () => {
it('compiles callouts with no heading or body!?', () => {
const markdown = `> 🚧
`;

expect(mdx(mdast(markdown))).toBe(markdown);
});

it('compiles callouts with markdown in the heading', () => {
const markdown = `> 🚧 It **works**!
>
> And, it no longer deletes your content!
`;

expect(mdx(mdast(markdown))).toBe(markdown);
});
});