test: tighten comfy provider assertions

This commit is contained in:
Shakker
2026-05-11 09:48:48 +01:00
parent 0f4a37c828
commit 4ddccbd28d

View File

@@ -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"],
},
]);
});
});