mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 12:00:43 +00:00
test: clarify skills cli log assertions
This commit is contained in:
@@ -220,7 +220,9 @@ describe("skills cli commands", () => {
|
||||
query: "calendar",
|
||||
limit: undefined,
|
||||
});
|
||||
expect(runtimeLogs.some((line) => line.includes("calendar v1.2.3 Calendar"))).toBe(true);
|
||||
expect(runtimeLogs).toEqual(
|
||||
expect.arrayContaining([expect.stringContaining("calendar v1.2.3 Calendar")]),
|
||||
);
|
||||
});
|
||||
|
||||
it("installs a skill from ClawHub into the active workspace", async () => {
|
||||
@@ -335,8 +337,8 @@ describe("skills cli commands", () => {
|
||||
slug: undefined,
|
||||
logger: expect.any(Object),
|
||||
});
|
||||
expect(runtimeLogs.some((line) => line.includes("Updated calendar: 1.2.2 -> 1.2.3"))).toBe(
|
||||
true,
|
||||
expect(runtimeLogs).toEqual(
|
||||
expect.arrayContaining([expect.stringContaining("Updated calendar: 1.2.2 -> 1.2.3")]),
|
||||
);
|
||||
expect(runtimeErrors).toEqual([]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user