test: simplify external plugin catalog id collection · openclaw/openclaw@42ae0fd
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -45,11 +45,13 @@ describe("official external plugin catalog", () => {
|
45 | 45 | }); |
46 | 46 | |
47 | 47 | it("keeps Matrix and Mattermost out of the external catalog until cutover", () => { |
48 | | -const ids = new Set( |
49 | | -listOfficialExternalPluginCatalogEntries() |
50 | | -.map((entry) => resolveOfficialExternalPluginId(entry)) |
51 | | -.filter(Boolean), |
52 | | -); |
| 48 | +const ids = new Set<string>(); |
| 49 | +for (const entry of listOfficialExternalPluginCatalogEntries()) { |
| 50 | +const pluginId = resolveOfficialExternalPluginId(entry); |
| 51 | +if (pluginId) { |
| 52 | +ids.add(pluginId); |
| 53 | +} |
| 54 | +} |
53 | 55 | |
54 | 56 | expect(ids.has("matrix")).toBe(false); |
55 | 57 | expect(ids.has("mattermost")).toBe(false); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。