test(plugins): type bundled public artifact mock · openclaw/openclaw@76e0bcd
steipete
·
2026-05-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -89,9 +89,16 @@ describe("web provider public artifact manifest fallback", () => {
|
89 | 89 | }); |
90 | 90 | |
91 | 91 | it("keeps explicit bundled web-search public artifact candidates inside respect-allow", () => { |
92 | | -mocks.resolveBundledExplicitWebSearchProvidersFromPublicArtifacts.mockImplementation( |
93 | | -(params: { onlyPluginIds: readonly string[] }) => |
94 | | -params.onlyPluginIds.map((pluginId) => ({ id: pluginId, pluginId })), |
| 92 | +const resolveExplicitWebSearchProviders = |
| 93 | +mocks.resolveBundledExplicitWebSearchProvidersFromPublicArtifacts as unknown as { |
| 94 | +mockImplementation: ( |
| 95 | +implementation: (params: { |
| 96 | +onlyPluginIds: readonly string[]; |
| 97 | +}) => { id: string; pluginId: string }[], |
| 98 | +) => void; |
| 99 | +}; |
| 100 | +resolveExplicitWebSearchProviders.mockImplementation((params) => |
| 101 | +params.onlyPluginIds.map((pluginId) => ({ id: pluginId, pluginId })), |
95 | 102 | ); |
96 | 103 | |
97 | 104 | const providers = resolveBundledWebSearchProvidersFromPublicArtifacts({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。