diff --git a/extensions/moonshot/media-understanding-provider.test.ts b/extensions/moonshot/media-understanding-provider.test.ts index 73e0d46af8b..07cdcb811c2 100644 --- a/extensions/moonshot/media-understanding-provider.test.ts +++ b/extensions/moonshot/media-understanding-provider.test.ts @@ -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");