mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:40:44 +00:00
test: tighten together video result assertion
This commit is contained in:
@@ -57,7 +57,11 @@ describe("together video generation provider", () => {
|
||||
}),
|
||||
);
|
||||
expect(result.videos).toHaveLength(1);
|
||||
expect(result.videos[0]?.fileName).toBe("video-1.webm");
|
||||
const [video] = result.videos;
|
||||
if (!video) {
|
||||
throw new Error("Expected generated Together video");
|
||||
}
|
||||
expect(video.fileName).toBe("video-1.webm");
|
||||
expect(result.metadata).toEqual(
|
||||
expect.objectContaining({
|
||||
videoId: "video_123",
|
||||
|
||||
Reference in New Issue
Block a user