Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

test(cosmos): extend the endpoint contract coverage added in this worktree

nirholas222030ec438b
diff --git a/tests/api/cosmos-endpoint.test.js b/tests/api/cosmos-endpoint.test.js
index 2336452eb..54d03afd6 100644
--- a/tests/api/cosmos-endpoint.test.js
+++ b/tests/api/cosmos-endpoint.test.js
@@ -153,11 +153,11 @@ describe('/api/cosmos: the poll hands back status, never diagnostics', () => {
});
it('returns the durable clip URL on completion', async () => {
- status.mockResolvedValue({ status: 'done', resultVideoUrl: 'https://cdn.three.ws/forge/cosmos/a.mp4' });
+ status.mockResolvedValue({ status: 'done', resultVideoUrl: 'https://three.ws/cdn/forge/cosmos/a.mp4' });
const res = await dispatch(makeReq({ method: 'GET', url: `/api/cosmos?job=${JOB}` }));
expect(res.body.status).toBe('done');
- expect(res.body.video_url).toBe('https://cdn.three.ws/forge/cosmos/a.mp4');
+ expect(res.body.video_url).toBe('https://three.ws/cdn/forge/cosmos/a.mp4');
expect(res.body.error).toBeNull();
});