test: clarify skills cli log assertions · openclaw/openclaw@f46fec4
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -220,7 +220,9 @@ describe("skills cli commands", () => {
|
220 | 220 | query: "calendar", |
221 | 221 | limit: undefined, |
222 | 222 | }); |
223 | | -expect(runtimeLogs.some((line) => line.includes("calendar v1.2.3 Calendar"))).toBe(true); |
| 223 | +expect(runtimeLogs).toEqual( |
| 224 | +expect.arrayContaining([expect.stringContaining("calendar v1.2.3 Calendar")]), |
| 225 | +); |
224 | 226 | }); |
225 | 227 | |
226 | 228 | it("installs a skill from ClawHub into the active workspace", async () => { |
@@ -335,8 +337,8 @@ describe("skills cli commands", () => {
|
335 | 337 | slug: undefined, |
336 | 338 | logger: expect.any(Object), |
337 | 339 | }); |
338 | | -expect(runtimeLogs.some((line) => line.includes("Updated calendar: 1.2.2 -> 1.2.3"))).toBe( |
339 | | -true, |
| 340 | +expect(runtimeLogs).toEqual( |
| 341 | +expect.arrayContaining([expect.stringContaining("Updated calendar: 1.2.2 -> 1.2.3")]), |
340 | 342 | ); |
341 | 343 | expect(runtimeErrors).toEqual([]); |
342 | 344 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。