test: tighten moonshot video content assertion

This commit is contained in:
Peter Steinberger
2026-05-09 20:56:01 +01:00
parent 80f3c0a036
commit 54d0baa6e6

View File

@@ -54,10 +54,12 @@ describe("describeMoonshotVideo", () => {
if (!content) {
throw new Error("expected Moonshot user content");
}
expect(content[0]).toMatchObject({
type: "text",
text: "Describe the video.",
});
const [textContent] = content;
if (!textContent) {
throw new Error("expected Moonshot text content");
}
expect(textContent.type).toBe("text");
expect(textContent.text).toBe("Describe the video.");
const videoContent = content[1];
if (!videoContent) {
throw new Error("expected Moonshot video content");