test: clarify table wrapping assertion · openclaw/openclaw@d21a9cf
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -255,7 +255,8 @@ describe("wrapNoteMessage", () => {
|
255 | 255 | const lines = wrapped.split("\n"); |
256 | 256 | expect(lines.length).toBeGreaterThan(1); |
257 | 257 | expect(lines[0]?.startsWith("- ")).toBe(true); |
258 | | -expect(lines.slice(1).every((line) => line.startsWith(" "))).toBe(true); |
| 258 | +const unindentedContinuationLines = lines.slice(1).filter((line) => !line.startsWith(" ")); |
| 259 | +expect(unindentedContinuationLines).toEqual([]); |
259 | 260 | }); |
260 | 261 | |
261 | 262 | it("preserves long Windows paths without inserting spaces/newlines", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。