| 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(); |