(...args: string[])
| 206 | |
| 207 | test("filtered listener output counts only when bound to the fixture PR and the change's event type", async () => { |
| 208 | const filtered = (...args: string[]) => { |
| 209 | const context = evidence(); |
| 210 | context.calls = [{ ...wait(), arguments: ["event", "listen", ...args], |
| 211 | output: [{ at: 15, stream: "stdout", text: "https://api.github.com/repos/sandbox/run/pulls/1/reviews/7\n" }] }]; |
| 212 | return new EventRouteGrader(fixed(context)).grade({ trajectory }); |
| 213 | }; |
| 214 | assert.equal((await filtered("--resource", prUrl, "--event", "review", "--jq", ".data.api_url")).passed, true); |
| 215 | assert.equal((await filtered("--resource", prUrl, "--event", "state,review", "-t", "{{.id}}")).passed, true); |
| 216 | assert.equal((await filtered("--resource", prUrl, "--event", "review")).passed, false); |
no test coverage detected