test: tighten byteplus video result assertion

This commit is contained in:
Shakker
2026-05-08 18:22:17 +01:00
parent 7ce0532fa5
commit f9c56bbce0

View File

@@ -63,7 +63,11 @@ describe("byteplus 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 BytePlus video");
}
expect(video.fileName).toBe("video-1.webm");
expect(result.metadata).toEqual(
expect.objectContaining({
taskId: "task_123",