(html: string)
| 28 | `.trim(); |
| 29 | |
| 30 | async function withPatch(html: string): Promise<{ comp: Composition; events: PatchEvent[] }> { |
| 31 | const comp = await openComposition(html); |
| 32 | const events: PatchEvent[] = []; |
| 33 | comp.on("patch", (e) => events.push(e)); |
| 34 | return { comp, events }; |
| 35 | } |
| 36 | |
| 37 | function expectGsapScriptPatch(id: string, events: PatchEvent[]): void { |
| 38 | expect(typeof id).toBe("string"); |
no test coverage detected