test: tighten firecrawl fetch config assertion · openclaw/openclaw@a1ea0b6
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -353,7 +353,12 @@ describe("firecrawl tools", () => {
|
353 | 353 | |
354 | 354 | expect(provider.id).toBe("firecrawl"); |
355 | 355 | expect(provider.credentialPath).toBe("plugins.entries.firecrawl.config.webFetch.apiKey"); |
356 | | -expect(applied.plugins?.entries?.firecrawl?.enabled).toBe(true); |
| 356 | +const pluginEntry = applied.plugins?.entries?.firecrawl; |
| 357 | +expect(pluginEntry).toBeDefined(); |
| 358 | +if (!pluginEntry) { |
| 359 | +throw new Error("expected Firecrawl fetch plugin entry"); |
| 360 | +} |
| 361 | +expect(pluginEntry.enabled).toBe(true); |
357 | 362 | }); |
358 | 363 | |
359 | 364 | it("passes proxy and storeInCache through the fetch provider tool", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。