MCPcopy Create free account
hub / github.com/cli/cli / review

Function review

evals/src/smoke.test.ts:58–58  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

56 await assert.rejects(collector.wait(43, 1_000), /not JSON/);
57
58 const review = (id: number) => `{"type":"review","data":{"api_url":"https://api.github.com/repos/o/r/pulls/1/reviews/${id}"}}\n`;
59 const received = new ReviewEventCollector();
60 received.write(`${review(42)}not json\n`);
61 await assert.rejects(received.wait(42, 1_000), /not JSON/, "a review already received does not hide later bad output");

Callers 2

smoke.test.tsFile · 0.85
review.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected