Skip to content

Commit

Permalink
Add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblickhan committed Jul 8, 2024
1 parent f10c5f6 commit c6a2b81
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,20 @@ describe("handles quotes around inline code", async () => {
});
});

it("handles quotes after blockquotes", async () => {
const file = await process('> blockquote\n\n"after blockquote"');
expect(file.toString()).toMatchInlineSnapshot(`
"> blockquote\n\n“after blockquote”
"`);
describe("handles quotes at the start of a paragraph", () => {
it("after paragraphs", async () => {
const file = await process('paragraph\n\n"after paragraph"');
expect(file.toString()).toMatchInlineSnapshot(`
"paragraph\n\n“after paragraph”
"`);
});

it("after a blockquote", async () => {
const file = await process('> blockquote\n\n"after blockquote"');
expect(file.toString()).toMatchInlineSnapshot(`
"> blockquote\n\n“after blockquote”
"`);
});
});

describe("should ignore parent nodes", () => {
Expand Down

0 comments on commit c6a2b81

Please sign in to comment.