Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Tests: Kling 4.0 checks read main's licence note and file messages

Claude9aeca3574b11
diff --git a/tests/account-kling-clips.test.ts b/tests/account-kling-clips.test.ts
index 44757195..c631374b 100644
--- a/tests/account-kling-clips.test.ts
+++ b/tests/account-kling-clips.test.ts
@@ -81,8 +81,8 @@ describe("an account's Kling 4.0 reference clips", () => {
// The read that measures a clip for the price (generations.ts prepClip) goes through readRef's guard.
await asA(async () => {
expect((await readRef(mine.url)).data.equals(CLIP)).toBe(true);
- await expect(readRef(theirs.url)).rejects.toThrow(/isn't yours/);
- await expect(readRef(owners.url)).rejects.toThrow(/isn't yours/);
+ await expect(readRef(theirs.url)).rejects.toThrow(/We can't find that file/);
+ await expect(readRef(owners.url)).rejects.toThrow(/We can't find that file/);
});
});
diff --git a/tests/kling-4.test.ts b/tests/kling-4.test.ts
index 2ef95a66..0afa848f 100644
--- a/tests/kling-4.test.ts
+++ b/tests/kling-4.test.ts
@@ -225,7 +225,7 @@ describe("catalog", () => {
expect(l.licence.class).toBe("paid-api");
expect(l.licence.name).toMatch(/fal/);
expect(l.licence.name).toMatch(/Replicate/);
- expect(l.licence.note).toMatch(/Kuaishou/);
+ expect(l.licence.note).toMatch(/You pay per run/);
expect(isOffered("kling-4", "cloud")).toBe(true);
});