test: check progress log output · openclaw/openclaw@dda4632
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -37,9 +37,7 @@ describe("cli progress", () => {
|
37 | 37 | progress.setPercent(50); |
38 | 38 | progress.done(); |
39 | 39 | |
40 | | -const output = writes.join(""); |
41 | | -expect(output).toContain("Indexing memory... 0%"); |
42 | | -expect(output).toContain("Indexing memory... 50%"); |
| 40 | +expect(writes).toEqual(["Indexing memory... 0%\n", "Indexing memory... 50%\n"]); |
43 | 41 | }); |
44 | 42 | |
45 | 43 | it("does not log without a tty when fallback is none", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。