test: reject blank bundled skill metadata · openclaw/openclaw@2f20e24
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,9 +18,9 @@ describe("bundled taskflow skill frontmatter", () => {
|
18 | 18 | const frontmatter = parseFrontmatter(raw); |
19 | 19 | |
20 | 20 | expect(frontmatter.name, relativePath).toBeTypeOf("string"); |
21 | | -expect(frontmatter.name.length, relativePath).toBeGreaterThan(0); |
| 21 | +expect(frontmatter.name?.trim(), relativePath).not.toBe(""); |
22 | 22 | expect(frontmatter.description, relativePath).toBeTypeOf("string"); |
23 | | -expect(frontmatter.description.length, relativePath).toBeGreaterThan(0); |
| 23 | +expect(frontmatter.description?.trim(), relativePath).not.toBe(""); |
24 | 24 | } |
25 | 25 | }); |
26 | 26 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。