mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten moonshot video content assertion
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user