test: wrap blockquote style ir · openclaw/openclaw@d6bde49
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -50,9 +50,14 @@ describe("blockquote spacing", () => {
|
50 | 50 | it("excludes the trailing paragraph separator from the blockquote span", () => { |
51 | 51 | const result = markdownToIR("> `gpt`\n\nbody"); |
52 | 52 | |
53 | | -expect(result.text).toBe("gpt\n\nbody"); |
54 | | -expect(result.styles).toContainEqual({ start: 0, end: 3, style: "blockquote" }); |
55 | | -expect(result.styles).toContainEqual({ start: 0, end: 3, style: "code" }); |
| 53 | +expect(result).toEqual({ |
| 54 | +text: "gpt\n\nbody", |
| 55 | +styles: [ |
| 56 | +{ start: 0, end: 3, style: "blockquote" }, |
| 57 | +{ start: 0, end: 3, style: "code" }, |
| 58 | +], |
| 59 | +links: [], |
| 60 | +}); |
56 | 61 | }); |
57 | 62 | }); |
58 | 63 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。