(id: string, events: PatchEvent[])
| 35 | } |
| 36 | |
| 37 | function expectGsapScriptPatch(id: string, events: PatchEvent[]): void { |
| 38 | expect(typeof id).toBe("string"); |
| 39 | expect(id.length).toBeGreaterThan(0); |
| 40 | expect(events).toHaveLength(1); |
| 41 | expect(events[0]!.patches.find((p) => p.path.includes("/script/gsap"))).toBeDefined(); |
| 42 | } |
| 43 | |
| 44 | // ─── patch event emission ───────────────────────────────────────────────────── |
| 45 |
no test coverage detected