mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten comfy provider assertions
This commit is contained in:
@@ -30,14 +30,22 @@ describe("comfy provider plugin", () => {
|
||||
});
|
||||
expect(choice?.provider.id).toBe("comfy");
|
||||
expect(choice?.method.id).toBe("cloud-api-key");
|
||||
expect(readManifest().providerAuthChoices).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
provider: "comfy",
|
||||
method: "cloud-api-key",
|
||||
choiceId: "comfy-cloud-api-key",
|
||||
}),
|
||||
]),
|
||||
);
|
||||
expect(readManifest().providerAuthChoices).toEqual([
|
||||
{
|
||||
provider: "comfy",
|
||||
method: "cloud-api-key",
|
||||
choiceId: "comfy-cloud-api-key",
|
||||
choiceLabel: "Comfy Cloud API key",
|
||||
choiceHint: "Required for cloud workflows",
|
||||
cliOption: "--comfy-api-key <key>",
|
||||
cliFlag: "--comfy-api-key",
|
||||
cliDescription: "Comfy Cloud API key",
|
||||
optionKey: "comfyApiKey",
|
||||
groupId: "comfy",
|
||||
groupLabel: "ComfyUI",
|
||||
groupHint: "Local or cloud workflows",
|
||||
onboardingScopes: ["image-generation"],
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user