(...times: number[])
| 299 | test("one reshaped event cannot stand in for several review rounds", async () => { |
| 300 | const facts = await completedLoop(); |
| 301 | const stream = (...times: number[]): GhCall => ({ |
| 302 | ...wait("stream", 5_000), |
| 303 | arguments: ["event", "listen", "--resource", prUrl, "--event", "review", "--follow", "--jq", ".id"], |
| 304 | output: times.map(at => ({ stream: "stdout", at, text: `event-${at}\n` })), |
| 305 | }); |
| 306 | for (const action of facts.snapshot.actions.filter(action => action.trigger === "wait")) action.callId = "stream"; |
| 307 | facts.calls = [stream(12_000, 32_000, 42_000)]; |
| 308 | assert.equal((await new EventRouteGrader(async () => facts).grade({ trajectory })).passed, true); |
no test coverage detected