test: clarify qa coverage inventory assertions · openclaw/openclaw@a3e48fd
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,8 +12,8 @@ describe("qa coverage report", () => {
|
12 | 12 | expect(inventory.secondaryCoverageIdCount).toBeGreaterThan(0); |
13 | 13 | expect(inventory.overlappingCoverage.length).toBeGreaterThan(0); |
14 | 14 | expect(inventory.missingCoverage).toEqual([]); |
15 | | -expect(inventory.byTheme.memory.some((feature) => feature.id === "memory.recall")).toBe(true); |
16 | | -expect(inventory.bySurface.memory.some((feature) => feature.id === "memory.recall")).toBe(true); |
| 15 | +expect(inventory.byTheme.memory.map((feature) => feature.id)).toContain("memory.recall"); |
| 16 | +expect(inventory.bySurface.memory.map((feature) => feature.id)).toContain("memory.recall"); |
17 | 17 | }); |
18 | 18 | |
19 | 19 | it("renders a compact markdown inventory", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。