test: tighten comfy provider assertions · openclaw/openclaw@4ddccbd
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,14 +30,22 @@ describe("comfy provider plugin", () => {
|
30 | 30 | }); |
31 | 31 | expect(choice?.provider.id).toBe("comfy"); |
32 | 32 | expect(choice?.method.id).toBe("cloud-api-key"); |
33 | | -expect(readManifest().providerAuthChoices).toEqual( |
34 | | -expect.arrayContaining([ |
35 | | -expect.objectContaining({ |
36 | | -provider: "comfy", |
37 | | -method: "cloud-api-key", |
38 | | -choiceId: "comfy-cloud-api-key", |
39 | | -}), |
40 | | -]), |
41 | | -); |
| 33 | +expect(readManifest().providerAuthChoices).toEqual([ |
| 34 | +{ |
| 35 | +provider: "comfy", |
| 36 | +method: "cloud-api-key", |
| 37 | +choiceId: "comfy-cloud-api-key", |
| 38 | +choiceLabel: "Comfy Cloud API key", |
| 39 | +choiceHint: "Required for cloud workflows", |
| 40 | +cliOption: "--comfy-api-key <key>", |
| 41 | +cliFlag: "--comfy-api-key", |
| 42 | +cliDescription: "Comfy Cloud API key", |
| 43 | +optionKey: "comfyApiKey", |
| 44 | +groupId: "comfy", |
| 45 | +groupLabel: "ComfyUI", |
| 46 | +groupHint: "Local or cloud workflows", |
| 47 | +onboardingScopes: ["image-generation"], |
| 48 | +}, |
| 49 | +]); |
42 | 50 | }); |
43 | 51 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。