test: wrap blockquote style ir

This commit is contained in:
Shakker
2026-05-12 19:27:59 +01:00
parent 8483659477
commit d6bde4994c

View File

@@ -50,9 +50,14 @@ describe("blockquote spacing", () => {
it("excludes the trailing paragraph separator from the blockquote span", () => {
const result = markdownToIR("> `gpt`\n\nbody");
expect(result.text).toBe("gpt\n\nbody");
expect(result.styles).toContainEqual({ start: 0, end: 3, style: "blockquote" });
expect(result.styles).toContainEqual({ start: 0, end: 3, style: "code" });
expect(result).toEqual({
text: "gpt\n\nbody",
styles: [
{ start: 0, end: 3, style: "blockquote" },
{ start: 0, end: 3, style: "code" },
],
links: [],
});
});
});