Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

fix: sort a copy of the readonly unresolved list in the test

rponea16deda173d1
diff --git a/packages/reference-video-tools/test/tools.test.ts b/packages/reference-video-tools/test/tools.test.ts
index bec79835..9d9c1a9f 100644
--- a/packages/reference-video-tools/test/tools.test.ts
+++ b/packages/reference-video-tools/test/tools.test.ts
@@ -188,7 +188,7 @@ test("a rejected request fails once instead of being retried until the loop give
});
const result = await rejecting.observe_reference({ reference_id: REFERENCE });
assert.equal(attempts, 3, "one shot has three observations, and each one must give up after a single rejected request");
- assert.deepEqual((result["unresolved"] as readonly string[]).sort(), ["audio:shot-001", "type:shot-001", "visual:shot-001"]);
+ assert.deepEqual([...(result["unresolved"] as readonly string[])].sort(), ["audio:shot-001", "type:shot-001", "visual:shot-001"]);
});
test("a failed observation is reported as unresolved instead of an empty list", async () => {