test: tighten channel plugin discovery assertion · openclaw/openclaw@3d52a29
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
src/commands/channel-setup
| Original file line number | Diff line number | Diff line change |
|---|
@@ -997,7 +997,18 @@ describe("ensureChannelSetupPluginInstalled", () => {
|
997 | 997 | onlyPluginIds: ["custom-external-chat-plugin"], |
998 | 998 | }), |
999 | 999 | ); |
1000 | | -expect(loadPluginManifestRegistry).toHaveBeenCalledWith(expect.objectContaining({})); |
| 1000 | +expect(loadPluginManifestRegistry).toHaveBeenCalledWith( |
| 1001 | +expect.objectContaining({ |
| 1002 | +config: cfg, |
| 1003 | +workspaceDir: "/tmp/openclaw-workspace", |
| 1004 | +candidates: expect.arrayContaining([ |
| 1005 | +expect.objectContaining({ |
| 1006 | +idHint: "custom-external-chat-plugin", |
| 1007 | +origin: "bundled", |
| 1008 | +}), |
| 1009 | +]), |
| 1010 | +}), |
| 1011 | +); |
1001 | 1012 | }); |
1002 | 1013 | |
1003 | 1014 | it("uses live manifest discovery for activation-declared setup scoping", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。