test: check skills json formatting · openclaw/openclaw@dbbb7f0
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,7 +65,33 @@ describe("skills-cli (e2e)", () => {
|
65 | 65 | |
66 | 66 | const jsonOutput = formatSkillsList(report, { json: true }); |
67 | 67 | const parsed = JSON.parse(jsonOutput); |
68 | | -expect(parsed.skills).toBeInstanceOf(Array); |
| 68 | +expect(parsed).toEqual({ |
| 69 | +workspaceDir: tempWorkspaceDir, |
| 70 | +managedSkillsDir: "/nonexistent", |
| 71 | +skills: [ |
| 72 | +{ |
| 73 | +name: "peekaboo", |
| 74 | +description: "Capture UI screenshots", |
| 75 | +emoji: "📸", |
| 76 | +eligible: true, |
| 77 | +disabled: false, |
| 78 | +blockedByAllowlist: false, |
| 79 | +blockedByAgentFilter: false, |
| 80 | +modelVisible: true, |
| 81 | +userInvocable: true, |
| 82 | +commandVisible: true, |
| 83 | +source: "openclaw-bundled", |
| 84 | +bundled: true, |
| 85 | +missing: { |
| 86 | +bins: [], |
| 87 | +anyBins: [], |
| 88 | +env: [], |
| 89 | +config: [], |
| 90 | +os: [], |
| 91 | +}, |
| 92 | +}, |
| 93 | +], |
| 94 | +}); |
69 | 95 | }); |
70 | 96 | |
71 | 97 | it("formats info for a real bundled skill (peekaboo)", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。