test: verify skills status note · openclaw/openclaw@ba03d63
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -159,8 +159,15 @@ describe("setupSkills", () => {
|
159 | 159 | await setupSkills({} as OpenClawConfig, "/tmp/ws", runtime, prompter); |
160 | 160 | |
161 | 161 | // OS-mismatched skill should be counted as unsupported, not installable/missing. |
162 | | -const status = notes.find((n) => n.title === "Skills status")?.message ?? ""; |
163 | | -expect(status).toContain("Unsupported on this OS: 1"); |
| 162 | +expect(notes.find((n) => n.title === "Skills status")).toStrictEqual({ |
| 163 | +title: "Skills status", |
| 164 | +message: [ |
| 165 | +"Eligible: 0", |
| 166 | +"Missing requirements: 1", |
| 167 | +"Unsupported on this OS: 1", |
| 168 | +"Blocked by allowlist: 0", |
| 169 | +].join("\n"), |
| 170 | +}); |
164 | 171 | |
165 | 172 | const brewNote = notes.find((n) => n.title === "Homebrew recommended"); |
166 | 173 | expect(brewNote).toBeUndefined(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。