MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getFirstAnimation

Function getFirstAnimation

packages/studio-server/src/routes/files.test.ts:193–206  ·  view source on GitHub ↗
(
    app: Hono,
    file: string,
  )

Source from the content-addressed store, hash-verified

191 }
192
193 async function getFirstAnimation(
194 app: Hono,
195 file: string,
196 ): Promise<{ id: string; method: string; fromProperties?: Record<string, number | string> }> {
197 const res = await app.request(`http://localhost/projects/demo/gsap-animations/${file}`);
198 const payload = (await res.json()) as {
199 animations: Array<{
200 id: string;
201 method: string;
202 fromProperties?: Record<string, number | string>;
203 }>;
204 };
205 return payload.animations[0];
206 }
207
208 it("update-from-property updates a fromTo start value in place", async () => {
209 const projectDir = createProjectDir();

Callers 1

files.test.tsFile · 0.85

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected