test: clarify plugin snapshot stale index assertions · openclaw/openclaw@eff631e
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -95,7 +95,7 @@ describe("loadPluginRegistrySnapshotWithMetadata", () => {
|
95 | 95 | stateDir, |
96 | 96 | installRecords: {}, |
97 | 97 | }); |
98 | | -expect(staleIndex.plugins.some((plugin) => plugin.pluginId === "whatsapp")).toBe(false); |
| 98 | +expect(staleIndex.plugins.map((plugin) => plugin.pluginId)).not.toContain("whatsapp"); |
99 | 99 | writePersistedInstalledPluginIndexSync(staleIndex, { stateDir }); |
100 | 100 | |
101 | 101 | const result = loadPluginRegistrySnapshotWithMetadata({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,7 @@ describe("buildPluginRegistrySnapshotReport", () => {
|
55 | 55 | env, |
56 | 56 | installRecords: {}, |
57 | 57 | }); |
58 | | -expect(staleIndex.plugins.some((plugin) => plugin.pluginId === "whatsapp")).toBe(false); |
| 58 | +expect(staleIndex.plugins.map((plugin) => plugin.pluginId)).not.toContain("whatsapp"); |
59 | 59 | writePersistedInstalledPluginIndexSync(staleIndex, { stateDir }); |
60 | 60 | |
61 | 61 | const report = buildPluginRegistrySnapshotReport({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。