mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 07:30:44 +00:00
test: tighten groq media provider assertion
This commit is contained in:
@@ -46,6 +46,11 @@ describe("groq provider compat", () => {
|
||||
label: "Groq",
|
||||
envVars: ["GROQ_API_KEY"],
|
||||
});
|
||||
expect(captured.mediaUnderstandingProviders[0]?.id).toBe("groq");
|
||||
expect(captured.mediaUnderstandingProviders).toHaveLength(1);
|
||||
const [mediaProvider] = captured.mediaUnderstandingProviders;
|
||||
if (!mediaProvider) {
|
||||
throw new Error("Expected Groq media understanding provider");
|
||||
}
|
||||
expect(mediaProvider.id).toBe("groq");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user